powershellscripts.com

PowerShell Logo


37 results found for the System Center Category in about 0.016 seconds
AddClusterCreateStopStartRemoveHAVM.ps1
The following script adds a host cluster and creates an HAVM. Then the script migrates the HAVM to the highest rated host, stops the HAVM to increase its memory, and then restarts the HAVM. The HAVM is then deleted, and the host cluster is removed from VMM.
http://gallery.technet.microsoft.com/b46f8e8a-2006-4848-82a8-7e5097009a7b

AddESXHost.ps1
The following script is the complete script for adding a VMware ESX Server host and changing its status from OK (Limited) to OK.
http://gallery.technet.microsoft.com/4bcb6317-3f7d-41ba-b70f-150f379d6856

AddHostCluster.ps1
The following script adds a host cluster to System Center Virtual Machine Manager (VMM).
http://gallery.technet.microsoft.com/da1a671e-61e0-4d58-8fab-4c8b5de9eda7

AddHostsInTrustedADdomain.ps1
The following script adds two Windows Server-based hosts in a trusted Active Directory Domain to System Center Virtual Machine Manager (VMM). You can add more than two hosts by including additional host computer names in the $VMHosts variable.
http://gallery.technet.microsoft.com/9569b33d-d5f2-4ddd-b748-aea01a184695

AddVirtualCenterServer.ps1
The following script adds a VMware VirtualCenter Server to System Center Virtual Machine Manager (VMM) in secure mode.
http://gallery.technet.microsoft.com/701aafac-f2f7-494f-bd60-f73e7c0bd180

AddVirtualCenterServerChangeHostsToOK.ps1
Adds a VMware VirtualCenter Server to VMM in secure mode and changes the status of the ESX Server hosts from OK (Limited) to OK.
http://gallery.technet.microsoft.com/9ca078fe-7a59-40db-acee-519cac3f54ea

Automating Update/Patch process using System Center Virtual Machine Manager 2012

http://gallery.technet.microsoft.com/Automating-UpdatePatch-136388b1

BackupVMMDatabase.ps1
The following script backs up the System Center Virtual Machine Manager (VMM) database to a local drive. You can back up the database to a network share by substituting the Universal Naming Convention (UNC) path for the drive path in the script.
http://gallery.technet.microsoft.com/4014f8c6-ff5b-4919-a558-3dfac85da57e

CheckForPendingReboot.ps1
You can verify whether the computer is pending a reboot by looking for the RebootPending registry key. The script in this topic looks for that key and, if the key is present, will restart the computer upon confirmation.
http://gallery.technet.microsoft.com/0049e635-491f-4245-a096-8db59479f97b

CompatibilityCheck.ps1
The following script gets the host ratings for all of the hosts in a host group. performs a direct validation of the specified virtual machine against each host in the host group that had an original host rating greater than zero and returns the host ratings for each host.
http://gallery.technet.microsoft.com/0081506a-a523-4b88-b28b-e39ec7474ad4

ConfigureVMNetworkAdapter.ps1
The following script connects the virtual network adapter to a virtual network, changes the MAC address from static to dynamic, and enables virtual LAN (VLAN) identification for the network adapter.
http://gallery.technet.microsoft.com/05926960-b762-41d2-85a3-672861494aa7

ConvertESXVMUsingV2VfromHost.ps1
The following example converts a virtual machine that is deployed on an ESX Server host to a Hyper-V virtual machine on a VMM host. To copy the entire script, see ConvertESXVMUsingV2VfromHost.ps1.
http://gallery.technet.microsoft.com/6973512d-1b10-4ac8-9fa6-d3aa4f270983

ConvertESXVMUsingV2VfromLibrary.ps1
The following example converts a VMware Server-based virtual machine that is stored in the library to a Hyper-V virtual machine on a VMM host. To copy the entire script, see ConvertESXVMUsingV2VfromLibrary.ps1.
http://gallery.technet.microsoft.com/c41e5521-92a8-4369-ab98-5097ba759b06

CreateNewVMs.ps1
You can use the following script to create multiple virtual machines when you do not have an existing template.
http://gallery.technet.microsoft.com/d699f1ff-e05b-4faa-a4ef-5eb338c9b2dc

CreateVMinLibraryMovetoHost.ps1
The following script creates a virtual machine in the library from a blank virtual hard disk. Then, the script deploys the virtual machine on the best-rated host in the host group. Finally, the script stops the virtual machine and stores it in the library.
http://gallery.technet.microsoft.com/3c0066da-2370-4dee-9dba-ae2182cadda6

Creating and Publishing a Custom Update Using PowerShell
This script demonstrates how one can use the WSUS APIs to create and publish a custom update to WSUS for use by Configuration Manager (or SC Essentials). The script is designed for simplicity and readability. Meaning, there’s no error handling, and hard-coded paths are used.
http://gallery.technet.microsoft.com/554fadd6-09f3-4585-97f5-ba524a7aff92

EvacuateHosts.ps1
Uses quick migration to move all running virtual machines off a host in a cluster, and then removes the host from service. The script then returns the host to service and performs the same tasks on the other hosts in the cluster.
http://gallery.technet.microsoft.com/f8723560-20e8-4ac0-8915-e290994755fb

Get List of Management pack overrides creates 2 days ago
hi,This script helps to find the list of all managemnt overrides created within  2days . Thishelps us find the list of overrides which are creted by any other SCOM Administrator.If you want to see the old overrides change the days in $oldDate.More Info: http://opsmgradmin.blogspo
http://gallery.technet.microsoft.com/Get-List-of-Management-3927569d

Get-DPMRecoveryPointReport
This script generates a report of all the recovery points from your DPM server.
http://gallery.technet.microsoft.com/ce30aa9f-b04c-4b73-871c-328833ca3290

Get-VMInformationPerHostNode
I created this script to help me document my environment.The script connects to the VMM Server which you specify.It thens brings a breakdown on all VMS in the cluster(s) and sorts them by VM on the HOSTs.The script displays the VM Name, VM Owner, Description, Host, Operating Syst
http://gallery.technet.microsoft.com/Get-VMInformationPerHostNod-0d27ac54

GetLibraryAuditRecords.ps1
When a System Center Virtual Machine Manager (VMM) job completes, an audit record is saved that lists the changes that the job made to the VMM object. To access the audit record information for a job, get the job by using the Get-Job cmdlet with the Full parameter.
http://gallery.technet.microsoft.com/a3630faa-6695-4800-a30a-45984c4f1958

GetVMNameAndIPAddress.ps1
The following script gets the computer name and IP address for each virtual machine that is managed by VMM and is in DNS.
http://gallery.technet.microsoft.com/cc4d8701-b7ec-497a-8cb2-28350fd02459

Install SCOM SnapIn
This script installs the Operations Management Server snapin wherever you want.
http://gallery.technet.microsoft.com/4028a613-b925-4653-9afe-2962df514895

InstallVirtualGuestServices.ps1
The following script checks all the virtual machines that are managed by the System Center Virtual Machine Manager (VMM) server to determine whether virtual guest services are installed.
http://gallery.technet.microsoft.com/040bea0d-9e85-4f33-bc88-c5f30bfed888

InstallVirtualGuestServices.ps1
Use the Set-VM VMM cmdlet with the InstallVirtualizationGuestServices parameter to install virtualization guest services on the virtual machines that are managed by the VMM server.
http://gallery.technet.microsoft.com/a85397d6-675c-429d-a69d-f75260d87e50

MaintenanceModeInCluster.ps1
In System Center Virtual Machine Manager (VMM) 2008 R2, you can start maintenance mode for a Windows-based host anytime you need to perform maintenance tasks (such as applying updates or replacing a physical component) on the host.
http://gallery.technet.microsoft.com/3c0f2d43-8c0f-4e58-a892-77776cdc021e

NewVMsFromTemplate.ps1
The following script creates a specified number of virtual machines from a template and then deploys them on the highest-rated hosts in a host group.
http://gallery.technet.microsoft.com/2a5ac29d-8db1-4be2-8101-b974a030c9ed

Putting a SCOM Agent into Maintenance Mode
Powershell Script to put a SCOM agent into maintenance mode. If the server is a member of a cluster, it will put the rest of the cluster into maintenance mode as well.
http://gallery.technet.microsoft.com/17eebf90-f6c7-46ba-9229-2bbde819aab2

RapidProvisionVM
To quickly create virtual machines from a template, you can use the UseLocalVirtualHardDisks parameter of the New-VM cmdlet.
http://gallery.technet.microsoft.com/f8cebf9e-3dca-433d-a5ad-1f745d661ef7

RapidProvisionVMsWithAnswerFile.ps1
You can use this script to create a virtual machine from a template that contains an embedded answer file and Integration Components.
http://gallery.technet.microsoft.com/7324dae1-6d47-4ad3-9b64-11f751d15a20

RecoverVMUsingRapidProvisioning.ps1
You can use rapid provisioning to recover a virtual machine after a Hyper-V host fails and cannot be recovered.
http://gallery.technet.microsoft.com/2bd39abc-fcb4-4cc3-becf-182d2ef6c15a

Run new and failed SCCM adverts
A very much work in progress but functional powersehll script to execute failed and new SCCM advertisments.
http://gallery.technet.microsoft.com/7384dee4-743c-4bc3-bcbf-0456d20d8b70

SCOM Agent Installation and Reporting Script

http://gallery.technet.microsoft.com/SCOM-Agent-Installation-8c237afe

Set SCCM Client Cache size
Check and set the SCCM Client cache size. It should either be the "my" default of 20GB our the vaule from the exceptions file in the format below.
http://gallery.technet.microsoft.com/7a087f21-18a1-446a-a33c-38b187ea1716

SetProcessorCompatibility.ps1
You can use parameters with the Set-VM cmdlet to match the CPU settings for a virtual machine to the actual processor hardware on a host during placement or migration.
http://gallery.technet.microsoft.com/bcc66c52-b838-47fb-98b3-d6880848cf7f

SignScriptsInLibrary.ps1
The following script uses a self-signed certificate to sign all of the scripts stored in the VMM Library. Before you run the script, you need to create a self-signed certificate.
http://gallery.technet.microsoft.com/0c722e4a-afe2-4ee1-b283-51698735b7a9

UpdateVMMAgents.ps1
The script uses the Update-VMMManagedComputer cmdlet to asynchronously update the agent software so that all the managed computers can be updated simultaneously. The script filters out types of hosts that you will need to manually update, such as perimeter network hosts.
http://gallery.technet.microsoft.com/7b069906-483c-40db-aee2-95dcae9cb46b