Tags
2008R2 Access List ACL activate by phone active directory ActiveSync ACU Address list alarms Anonymous relay array backup cacls catch cd-key cisco Citrix CUSD DAG dismount iso dns Exchange Fortigate Fortinet function get-eventlog get-snapshot get-vm HPE 3PAR Linux Lync microsoft Permissions powercli Powershell Powershell agent PSA PuTTY registry script UCS Director vmware Windows 7 Windows Server Zenoss-
Recent Posts
Recent Comments
- Mark Cloney on PowerCLI: Getting vmhost uptime
- Pierre Wong on Powershell: Listing activated clients on KMS server
- Ian on “The given Key was not present in the dictionary” error when running Group Policy Modeling
- Ian on “The given Key was not present in the dictionary” error when running Group Policy Modeling
- Wasim on Resetting the Discretionary Access Control List (DACL) in a Windows Service security descriptor
Categories
- Ad
Category Archives: Microsoft
PowerCLI: List all vm’s with ISO mounted and dismount them
Easy-peasy and a pretty short post… To get all vm’s with iso mounted: Get-VM | Get-CDDrive | select @{N=”VM”;E=”Parent”},IsoPath | where {$_.IsoPath -ne $null} Then, to dismount those: Get-VM | Get-CDDrive | where {$_.IsoPath -ne $null} | Set-CDDrive -NoMedia -Confirm:$False
Posted in PowerCLI, Powershell, VMware
Tagged dismount iso, get-vm, powercli, Powershell, set-cddrive, vmware
PowerCLI: Migrate all vm’s on a datastore
PowerCLI is just awsome This simple one-liner migrates all vm’s off one datastore to a new one: Get-VM -Datastore <datastore1> | Move-VM -Datastore <datastore2> You can also move vm’s off one datastore and place them in any datastore within a … Continue reading
PowerCLI: List all snapshots
It’s been a while since last update, again, so I figured I should at least provide something.. I recently started in a new job, and one of the first things I looked into was the amount of snapshots in our … Continue reading
Posted in PowerCLI, Powershell, VMware
Tagged date created, get-snapshot, get-vm, powercli, Powershell, size, snapshot, vmware
Powershell: Invoke-Sound function
I stumbled upon this brilliant powershell function for playing sounds using powershell, check it out: http://community.spiceworks.com/scripts/show/1337-powershell-function-invoke-sound He even added a switch for playing the imperial march from Star Wars
Posted in Microsoft, Powershell
Tagged function, Invoke-Sound, Powershell
Powershell: Install role or feature on multiple remote servers
Today I was presented with a task that sounded pretty boring and repetitive: Install the Windows Search service on all our citrix servers. Now, I could just log on each and every one of our citrix servers, open Server Manager and … Continue reading
Posted in Microsoft, Powershell
Tagged Powershell, Server Manager, Windows Server
Powershell: Export-Csv and non-English letters
The Export-Csv cmdlet is a really nice tool if you want to gather info from e.g. Active Directory that you later want to import to Excel. But as you might have noticed it doesn’t play well with non-English letters. Working … Continue reading
Posted in Microsoft, Powershell
Tagged Encoding, Export-Csv, Powershell, Unicode
Exchange: Content index state failed
If you ever had problems with corrupt databases in an Exchange 2010 DAG setup you might have encountered this error. Trying to activate the database on a server where it has this state will fail. However there is a quite … Continue reading
Posted in Exchange, Microsoft, Powershell
Tagged Content index state failed, DAG, Exchange, Powershell
Exchange: Activate Database Copy fails
After some exchange services failed on one of the nodes in our Exchange 2010 DAG we got some problems with one database. The database was mounted on server2 where it has an activation preference of 2. Trying to manually activate the … Continue reading
Posted in Exchange, Microsoft
Tagged DAG, database action failed, Exchange, hr=0x80004005 ec=-1216, Unable to mount database
Resetting the Discretionary Access Control List (DACL) in a Windows Service security descriptor
OpenService FAILED 5: Access is denied. — “Oh crap!” If you ever see this error and need to reset the DACL on a Windows service, let’s say in case you (or someone else) accidentally deletes it, or configure it to something that … Continue reading
Posted in Microsoft
Tagged 2008R2, Access List, ACL, DACL, PsExec, PsTools, registry, Windows Server
Powershell: Checking multiple dns records for multiple domains
I don’t know how useful this will be for others, but in our case we had a need to check a few public dns records on some of our domains. Doing so by using a web portal will be time … Continue reading
Posted in Microsoft, Powershell
Tagged dns, Powershell, Resolve-DnsName