www.vmwareadmins.com

how many VMs can you put in a box?

  • Increase font size
  • Default font size
  • Decrease font size
www.vmwareadmins.com

Server not connecting to the correct DFS server

E-mail Print PDF

let me guess, your server is in site A, and instead of connecting to DFS server A, its connecting to DFS server B in site B? Bad cached DFS referral

here's your fix!

From the client not connecting to the correct DFS server:

ServerManagerCmd -install RSAT-DFS-Mgmt-Con

dfsutil /pktflush

This will instantly fix your problem! 

 

Find Active Directory object name from SID using Windows Powershell

E-mail Print PDF
Found some erroneous SID's within a procmon capture, trying to figure out who they belonged to.
 
What else to use, PowerShell! 
 
$objSID = New-Object System.Security.Principal.SecurityIdentifier ` ("s-1-5-21-1220945662-573735546-1417001333-500") $objUser = $objSID.Translate( [System.Security.Principal.NTAccount])$objUser.Value
 
 

Bulk add computers to active directory group using powershell

E-mail Print PDF
Needed to go through the environment and find all the computers per datacenter and add them to their respective security groups so they would get wsus group policy applied to them:
 
So i had to search for a list of computers using powershell, then add that very same list of computers to an active directory group 
 
$pcs= Get-ADComputer -LDAPFilter "(name=sue*)" -SearchBase "ou=thick,ou=3_workstations,DC=ccs,DC=local" foreach ($pc in $pcs)      {    Add-ADGroupMember "FHH_WSUS_WKS" $pc     }
 
 

Find all Active Directory computers NOT in a group(s) using PowerShell

E-mail Print PDF
Stretching my legs yet again in the MS world using powershell...
 
This time, I need to find all the computers in the Thick OU that are not members of WSUS groups!
 
Get-QADComputer -searchroot "ccs.local/3_workstations/thick" -NotMemberOf "KDC_WSUS_WKS", "FHH_WSUS_WKS", "HDC_WSUS_WKS"
 

Add PortGroup to all ESX hosts in cluster using vOrchestrator

E-mail Print PDF

I'm back in action and converting some of my utility PowerCLI scripts to vCO again.

This time, I'm creating a workflow that will add a portgroup to vSwitch to all of the hosts in a cluster.

First off, create your schema using the getAllHostSystemsOfCluster workflow object, and a scriptable task

 Next, create some inputs, I used: VLAN_ID, VLAN_Name and Switch_Name.

On your scriptable task, define your In Parameters

Drop some code in (generated with Onyx)

And there you have it!

the only thing is to make note of the:

.configManager.NetworkSystem
prepend to
updateNetworkConfig

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  10 
  •  Next 
  •  End 
  • »


Page 1 of 12

Follow Me On...

Facebook linkedin twitter youtube