A comprehensive collection of PowerShell scripts for Windows system administration, Active Directory management, and cloud service integration.
This repository contains various PowerShell scripts designed to automate common IT administration tasks in Windows environments. The toolkit demonstrates modern approaches to system administration, security implementation, and enterprise management.
AskAndRenameMachineWithSN.ps1- Rename computers using serial numbersDesktopOrLaptop.ps1- Detect machine type (laptop/desktop)GetMachineSN.ps1- Retrieve machine serial numbersGetMachineFromUser.ps1- Get machine information from AD userRenameMachineWithSN.ps1- Rename local machine using SN
DisableNETBIOS.ps1- Disable NetBIOS across network interfacesfrom_dhcp_to_fixed.ps1- Convert DHCP to static IP configuration
create-securePwFile.ps1- Create encrypted password filesRemove-File-Eventually.ps1- Handle deletion of locked filessentinelone_delete_snapshots.ps1- Manage security snapshots
copy_user_batch.ps1- Batch creation of AD usersdeleteUsersFromXLSX.ps1- Delete users from Excel listremoveEntraIdDeviceFromUser.ps1- Manage Entra ID device registrations
chengeWinPKToPro.ps1- Windows license managementoffice_no_org_control.ps1- Configure Office organizational controlrestartStockagerServices.ps1- Service management with loggingmigrate_printers_newpserver.ps1- Migrate printer configurations
azure_login_to_graph.ps1- Microsoft Graph API authenticationautomic/check_agent.ps1- Check status of automation agents
Scripts implementing Microsoft's recommended tiered administration model:
script_tier/1-Create-OUs.ps1- Create organizational unit structurescript_tier/2-Create-Group.ps1- Create security groupsscript_tier/2-TierUsersAdd.ps1- Add tiered administrative usersscript_tier/3-ManualSecurityGroupAdd.Server.ps1- Server group assignmentstiers_administrators.ps1- Tiered admin management
- PowerShell Automation: Advanced scripting techniques using WMI, CIM, remoting
- Active Directory Management: User/group creation, permissions, OU structure
- Security Implementation: Tiered administration model, secure credential handling
- Windows Management: Service control, registry configuration
- API Integration: REST API consumption (Microsoft Graph, SentinelOne)
- Cloud Services: Azure/Microsoft 365 administration
Most scripts can be run directly from PowerShell with appropriate permissions. Some scripts require administrator privileges or specific module installations noted in script headers.
- Windows PowerShell 5.1 or PowerShell Core 7.x
- Windows Server environment with Active Directory
- Appropriate administrative permissions
- Various PowerShell modules as required by specific scripts
This repository is provided for educational and professional reference purposes.