I had to get SID for all Users that Logon Name begin with pa Get-ADUser -Filter {Name -like “pa*”} | Select Name,SID | Format-Table -Auto For all Groups that Name begin with pa Get-ADGroup -Filter {Name -like “pa*”} | Select Name,SID | Format-Table -Auto For all Computers that Name begin…
Articles by phi3nix
Hi Guys, This is was not a simple task… because of Get-VMHardDiskDrive can’t give you the size of the drive. $VMget=Get-VM -ComputerName (Get-ClusterNode -Cluster ClusterName) | Get-VMHardDiskDrive | Select-Object -Property vmname, vmid, computername, controllertype, controllernumber,controllerlocation,path foreach ($VM in $VMget) { $VHDRemotePath=$VM.Path -replace “:”, “$” $VHDRemotePath=”\\”+$VM.ComputerName+”\”+$VHDRemotePath $vhdsize= Get-ChildItem $VHDRemotePath | select-object…
Hi Guys, Some of my users are able to break Direct Access and when they run gpupdate /force they are getting “The processing of Group Policy failed. Windows could not apply the registry-based policy settings for the Group Policy object LocalGPO. Group Policy settings will not be resolved until this…
Hi Guys, Than you decommissioned server and you are trying to add the new server with the same name and you are getting error “account already exists”. The solution is simple. Don’t use the long domain name. Example: My Domain name: mydomain.name.name.com You have to use: mydomain That’s all. Have…
Hi this is my easy way to export all mailboxes to PST on the Exchange servers. Step1: We have to give our user permission to EXPORT mailboxes. New-ManagementRoleAssignment -role “Mailbox Import Export” -User OUR_USER Step2: Please create folder where you want to save PST files. Step3: Export user names. Get-mailbox|…