Commands

Powershell - Connecting to Azure
Copy and paste each command fully: 1.    Set-ExecutionPolicy RemoteSigned 2.    $UserCredential = Get-Credential 3.    $Session = New-PSSe...
Tue, Jul 5, 2022 10:23 AM
Powershell - Add Calendar or Contact
View permission: Get-MailboxFolderPermission username:\Calendar  [change username to actual user] User permission: Set user 2 to be Ed...
Tue, Jul 5, 2022 10:23 AM
Powershell - Enable Email Online Archive
Before you turn on the “Auto-Expanding” feature ensure you have enabled the archiving option for the user. Get-Mailbox -Filter {ArchiveStatus -Eq &quo...
Tue, Jul 5, 2022 10:23 AM
Powershell - Force Password Reset for All
Change Per OU: Get-ADUser -Filter * -SearchBase “cn=users,dc=cpg,dc=cityprogroup,dc=com” | Set-ADUser -CannotChangePassword:$false -PasswordNeverExpir...
Tue, Jul 5, 2022 10:22 AM
Powershell - Set Calendar Permission
$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershel...
Tue, Jul 5, 2022 10:23 AM
Bitlocker Commands
status for pc: manage-bde -status status for specific drive: manage-bde -status d:  Turn on: manage-bde -on C: turn on with pw: ma...
Tue, Jul 5, 2022 10:24 AM
Net Time Command
w32tm /query /source net stop w32time example, set to google time server: w32tm /config /syncfromflags:manual /manualpeerlist:time.google.com ...
Tue, Jul 5, 2022 10:26 AM
Robocopy
robocopy w:\ d:\ /XD "W:\Profiles" "W:\Exchange" /MIR /R:3 /w:9 /sec /secfix     w: is the source d: is the destination /XD ...
Tue, Jul 5, 2022 10:28 AM
Removed and Re-Add Network Drives (IAC)
Remap Drives.bat @echo off net use * /del /y net use F: \\10.10.1.30\ArtData net use G: \\10.10.1.30\ArtData2 net use N: \\10.10.1.30\Mailing net use...
Tue, Jul 19, 2022 11:14 AM
Retrieve HP Serial and Product Numbers
To get serial# Get-WmiObject Win32_BIOS | Select-Object SerialNumber To get product# Get-WmiObject win32_computersystem | Select-Object ...
Wed, Nov 6, 2024 11:50 AM