powershellscripts.com

PowerShell Logo


78 results found for the Servers Category in about 0.014 seconds
A Function to test-connection for a list of Computers, in a flexible format.

http://gallery.technet.microsoft.com/2789c120-48cc-489b-8d61-c1602e954b24

A script to monitor servers, Ping Test, with email notification (OLD)
The Script runs against a list of Servers and notifies the user if the servers are down.
http://gallery.technet.microsoft.com/d0670079-6158-4dc5-a9da-b261c70e4b7d

Add Domain Groups to Local Groups
PowerShell script to add groups from trusted Domains to Local groups of a list of member servers.
http://gallery.technet.microsoft.com/d4cd8c1e-7073-42af-8c7c-89e19334f979

Add URL to a URL Set in ISA / TMG

http://gallery.technet.microsoft.com/67af80a3-8c05-493c-a79b-21772eae07e4

BizTalk Server - Determine Version and Edition

http://gallery.technet.microsoft.com/BizTalk-Server-Determine-1e58d689

Changing RAM settings for Hyper-V machines
This script allows to change RAM settings of several Hyper-V machines at once.
http://gallery.technet.microsoft.com/93051878-9126-41d5-ba7e-16798fd7c35e

Check for crash dump files on computer

http://gallery.technet.microsoft.com/6b9ec914-9647-4a52-b3d2-15b122bc6df7

Check System File Versions on a list of computers

http://gallery.technet.microsoft.com/614800ee-6ddf-4cb2-91a8-44b1967d5998

Common Connect Functions - 14.0.1
This script contains all the common functions required to create a new remote powershell session in Microsoft Exchange Hosted Datacenter using LiveId credential
http://gallery.technet.microsoft.com/cd04703f-aaee-4abe-a169-e6bd1a3fd5d4

Connect Exchange Datacenter - 14.0.1

http://gallery.technet.microsoft.com/15876b57-d0ed-492d-bc8d-dc17cdf2d103

Connect to VCenter using PowerCLI more easily
Do you have multiple VCenter deployments you need to manage? Perhaps an old version and a new one OR no doubt you might upgrade in the future. Now connect more easily in scripts etc.
http://gallery.technet.microsoft.com/113c3613-fb4a-4b4b-b036-1a3add5b35fc

Deploy VM's to ESX / VSphere using PowerCLI
This is deployment script for building VM's from a template and customization spec. Tested on ESX 3.5 and VSphere 4.1.
http://gallery.technet.microsoft.com/c74b4a23-e4ec-4829-b38e-54252b40fdec

Determine OS Architecture (32 bit or 64 bit) * Updated
This script returns an object stating if the Operating System is running as 32 bit or 64 bit.
http://gallery.technet.microsoft.com/26539b66-13a7-44f6-9adb-886c54fc141f

Determine Volume/Disk information - size and free space
This script uses WMI to determine the volume information. I mainly uploaded i since some of my other scripts call this script for info.
http://gallery.technet.microsoft.com/74884d85-c0b5-446a-be04-3d411a6dce2f

Disconnect from VCenter using PowerCLI more easily
Do you have multiple VCenter deployments you need to manage? Perhaps an old version and a new one OR no doubt you might upgrade in the future. Now disconnect more easily in scripts etc.
http://gallery.technet.microsoft.com/8c0ce403-3655-4fb8-b1ba-86df55e7e767

ESXi Storage Path Report

http://gallery.technet.microsoft.com/ESXi-Storage-Path-Report-f6cdad96

Exchange 2007 Audit Script
Audit a list of Exchange 2007 servers and report information to HTML.
http://gallery.technet.microsoft.com/38aa723c-2fdf-4b6b-82d1-2aea82549a25

FCI SharePoint Upload PowerShell script
This script uploads a single file to a SharePoint site and transfers any classification properties up with it. Using this script, a File Management Task (part of FCI) can migrate a selected set of files to SharePoint.
http://gallery.technet.microsoft.com/f538c34c-4f74-4645-9649-fd25e49805d6

Find and Report on Directory Quotas, leveraging the DirQuota Command
This script leverages powershell remoting to retrieve the Quota Listings from remote systems.It also leverages the Quest Active Directory cmdlets to retrieve computer accounts that are members of a security group.
http://gallery.technet.microsoft.com/Find-and-Report-on-cc49120e

Get the VMX for Guests path in VMware
If you want to register a VM in ESX you have to know the VM Name and the VMX path. This script will export this information.
http://gallery.technet.microsoft.com/13989998-ae23-45a1-b063-71351b31f051

Get the VMX Path for VMware VMs

http://gallery.technet.microsoft.com/Get-the-VMX-Path-for-68c78336

get-iisProperties
Retrieve IIS properties for web sites on a server.
http://gallery.technet.microsoft.com/20a73ee4-5b17-49e8-8c33-3e08fd066af2

Get-LastLogon - Determine The Last LoggedOn User - Outputs Object
This function will list the last user logged on or logged in.  It will detect if the user is currently logged on via WMI or the Registry, depending on what version of Windows it runs against.
http://gallery.technet.microsoft.com/Get-LastLogon-Determining-283f98ae

Get-NetworkConfiguration
This script gathers basic network adapter configuration and outputs that information as a custom object. This script serves as a sample on creating output objects.
http://gallery.technet.microsoft.com/925a517d-f400-4773-a79d-22ba9e91618e

How to make your script continue after a reboot
This script function will demonstrate how to make your script continue after a reboot. For example if you're adding roles to a server which require a reboot.
http://gallery.technet.microsoft.com/a449b284-f2fb-4964-9c3e-76a02e00342f

Hyper-V VHD creator (with UI)
Hyper-V VHD creator (with UI)
http://gallery.technet.microsoft.com/319aaa86-ae52-4d33-8d48-18a42673f938

Identify the Physical Host of a Virtual Server
Here is a PowerShell script you can use to identify the Physical host name of a Virtual server.
http://gallery.technet.microsoft.com/6a733c4c-2c6d-40c8-8cc2-1cb64736aaf3

Identify the Physical Host of a Virtual Server
This PowerShell script can be used to identify the Physical host name of a Virtual server.
http://gallery.technet.microsoft.com/4a6c40c6-9e16-4dd1-bea8-356a7d7735cf

IIS Log Files - Compress and Remove
Given one or more directories, use PowerShell and 7-Zip to parse through the contents for the previous month's IIS log files. Zip them up, verify the .zip and delete the original log files. The resulting compressed archive will be about 4.5% of the size of the original log files.
http://gallery.technet.microsoft.com/31db73b4-746c-4d33-a0aa-7a79006317e6

Inventory VMware vSphere VMs

http://gallery.technet.microsoft.com/Inventory-VMware-vSphere-363696dd

Is a server a Virtual in a Cluster
Queries a server via wmi and determines if it is an actual node, or a virtual of a cluster.
http://gallery.technet.microsoft.com/eaaac1e4-b920-4407-8d05-43471792e497

Is this server part of a MS Cluster
Queries a remote server to see if it is part of a cluster via WMI.
http://gallery.technet.microsoft.com/da51bcca-8407-45c3-896a-0df98014a4d5

Leveraging Microsoft Baseline Security Analyser with PowerShell
Leveraging Microsoft Baseline Security Analyser with PowerShell, checking for required Security updates on Servers.
http://gallery.technet.microsoft.com/ca419380-c6e4-444d-927d-dee9fa820129

List Windows Product Activation Status of all Domain Computers
The following script lists the activation status of all computer objects found in the active directory running Windows 7 / Windows 2008 R2. If you have insufficient rights to query or the computer is offline / RPC server is not available, you will get a corresponding error messag
http://gallery.technet.microsoft.com/List-Windows-Product-eb4ee903

manage Hyper-V VM environment
I’ve written a script that will power on and power off Server 2008 Hyper-V VMs in sequential order from a text file. This Powershell script will read Hyper-V VM names from text file and turn them on.
http://gallery.technet.microsoft.com/e21132ed-e30d-4855-b9f1-32d0bc2991f2

MPI Rank0 placement on Windows HPC
The RNmpiexec.ps1 script helps you assign the Rank0 process to a particular node when you launch an MPI job on a Windows HPC cluster. The script is essentially a wrapper for mpiexec, and you would use the script instead of mpiexec in the command line for your job.
http://gallery.technet.microsoft.com/58522f51-fcb5-4cd6-8ddd-4d2b0fcb608a

PowerShell - Output DNS and WINS servers
This is a short PowerShell script that outputs the IP address, DNS servers, and WINS servers for all IP-enabled adapters on one or more computers. Requires at least PowerShell 2.0. It uses the WMI Win32_NetworkAdapterConfiguration object.
http://gallery.technet.microsoft.com/PowerShell-Output-DNS-and-d935a44c

Powershell For DPM Storage Planning Calculator
DPM存储资源池规划计算器
http://gallery.technet.microsoft.com/cea5a4d7-de0f-442c-b3d9-74427551c809

PowerShell Module for DHCP
PowerShell module for the administration of Microsoft DHCP
http://gallery.technet.microsoft.com/05b1d766-25a6-45cd-a0f1-8741ff6c04ec

PowerShell Script to extract the UUID of a particular server
Here’s a sample PowerShell Script to extract the UUID of a particular server.
http://gallery.technet.microsoft.com/42a36352-ca01-4875-b955-2ebfa3544543

Powershell Test-Server function for connectivity testing

http://gallery.technet.microsoft.com/Powershell-Test-Server-e0cdea9a

PS - Apply Snapshot
PS 2.0 script to apply snapshots to VMs
http://gallery.technet.microsoft.com/ef9e8909-dab3-4cea-9923-dc029767d487

PS - Change ISO
PS 2.0 script to change the ISO in the virtual DVD Drive.
http://gallery.technet.microsoft.com/434d2a89-a780-440b-9692-c1052eb48527

PS - Change VM State
PS 2.0 script to change state on VMs.
http://gallery.technet.microsoft.com/022c6c87-12d1-4043-b4aa-3d827be7319d

PS - Compact VHD
PS 2.0 script to compact VHDs
http://gallery.technet.microsoft.com/4b3c2f0e-1d70-4535-a252-cb779eed9a99

PS - Connect Switch to NIC
PowerShell 2.0 script for connecting a virtual switch to a physical NIC on the HOST
http://gallery.technet.microsoft.com/62c5a3ae-68ed-4d05-8742-7c058108826d

PS - Connect Switch to VM
PS 2.0 script to connect a virtual switch to a VM
http://gallery.technet.microsoft.com/fa674e77-dd94-45d7-9840-286ca79f2699

PS - Creat VSwitch
PS 2.0 script to create a virtual switch
http://gallery.technet.microsoft.com/1bfff77a-f3e7-4fd7-ad17-e8d2f6fdc60f

PS - Create Differencing VHD
PS 2.0 script to create a differencing VHD
http://gallery.technet.microsoft.com/c2185966-b873-442c-b93b-8dc24bbfcf36

PS - Create Dynamic VHD
PS 2.0 script to create dynamic VHDs
http://gallery.technet.microsoft.com/b88a5938-7c7c-4885-a39a-62f197e748c7

PS - Create Fixed VHD
PS 2.0 script to create fixed VHDs
http://gallery.technet.microsoft.com/b59170e4-5381-48a9-a71d-e621ce1b921f

PS - Create VM
PS 2.0 script to create VMs
http://gallery.technet.microsoft.com/26e135a4-6b78-42b5-8f8e-31283622e82b

PS - Delete VM
PS 2.0 do delete VMs
http://gallery.technet.microsoft.com/c1c53394-b862-422b-97f6-70f2aed469da

PS - Expand VHD
PS 2.0 script to expand VHDs
http://gallery.technet.microsoft.com/db780701-6f08-4f30-a124-60fc4136f260

PS - Get a Custom KVP
PS 2.0 script to Get a Custom KVP
http://gallery.technet.microsoft.com/076d4999-f8fb-4846-aa85-c56aa26d9975

PS - Get Intrinsic KVPs
PS 2.0 script to get intrinsic KVP
http://gallery.technet.microsoft.com/5e60bd38-66b7-4e8b-9426-57921863eb76

PS - List Snapshots
PS 2.0 script to list VM Snapshots
http://gallery.technet.microsoft.com/a66ca0f2-db7b-436d-bf2f-cd0a17f458d8

PS - List VMs
PS script to list VMs from Thomas Lee
http://gallery.technet.microsoft.com/55796bdc-6f40-42ff-be85-681399546c28

PS - Loopback Mount a VHD
PS 2.0 script to loopback mount a VHD
http://gallery.technet.microsoft.com/461d1ce9-8087-4dfc-8ced-d911585678d9

PS - Merge VHDs
PS 2.0 script to merge VHDs
http://gallery.technet.microsoft.com/2f6e8123-2616-4d3c-845f-58543f78187f

PS - Modify VLAN Settings
PS 2.0 script to modify virtual networking settings on your virtual machines.
http://gallery.technet.microsoft.com/1f360935-4bc6-434a-804e-a2ed54ffc896

PS - Set a Custom KVP
PS 2.0 script to set a custom VM KVP
http://gallery.technet.microsoft.com/e381cd89-ab26-4ef0-9826-a694b407c9fb

PS - Shut Down VM
PS 2.0 Script to Shut Down VMs
http://gallery.technet.microsoft.com/f2f81afb-202c-49fa-a3c8-ab7153cafe05

PS - Snapshot a VM

http://gallery.technet.microsoft.com/ec44a45f-7f8d-4055-bd1f-d0a5bd5e492a

PS Check IC Version
PS 2.0 script to Check if VM Integration components/integration services are up to date
http://gallery.technet.microsoft.com/251337c5-ab97-40b3-a888-80b68102d1d5

PS Script to Check Hypervisor Heartbeat
Checks if Hypervisor is running
http://gallery.technet.microsoft.com/2f7a564b-fbbf-487f-a10b-a303a9ccd3de

Script to gather RAM and Pagefile information from servers
This is a basic script to gather RAM and pagefile information from servers, although it would probably work with desktops as well.
http://gallery.technet.microsoft.com/369f133d-e7b0-4c62-be0e-15a7d0d74951

Script to Reconnect A Parent Disk
Attached is a simple powershell script for calling ReconnectParentVirtualHardDisk. Use it if you are having trouble in the UI when you are trying to reconstruct a broken chain of snapshots. Copy it locally, rename it to .ps1, and run it from an elevated poweshell command prompt.
http://gallery.technet.microsoft.com/87dde0cf-2c05-40e0-bff2-7c5ea6cc2ff4

Server Uptime Report, with Email notification (old)
This script reports the server/workstation uptime and emails the results in an easy to read table. This is an old version, small mods in the new version, not really much difference.
http://gallery.technet.microsoft.com/06ea3537-08b7-41eb-9248-0f776cf28017

Server Uptime Report, with Email notification (Updated)

http://gallery.technet.microsoft.com/2d537e5c-b5d4-42ca-a23e-2cbce636f58d

Set Individual VMGuest Access Permissions

http://gallery.technet.microsoft.com/5ce65e82-1296-453e-a124-7063aabb5bc7

Show ISA Server Array Rules

http://gallery.technet.microsoft.com/1b2f1e81-407e-4af8-ae87-073a44dd3aa7

Show ISA Server URL Sets

http://gallery.technet.microsoft.com/2b2f84fc-3423-4b1a-9f5b-1d1d368dc87f

Test computer shutdown reason
This is a simple one liner to check the reason provided for the computer shutdown.
http://gallery.technet.microsoft.com/496332b0-0e2d-4875-bcae-db8384512812

Update-VmFromTemplate
This script will modify a VM on Hyper-V R2 that has been imported from an exported VM.
http://gallery.technet.microsoft.com/3a9207c5-2dcd-4fa2-bdcc-c7292012c781

Use PowerShell Considerable Add DPM client
通过PowerShell批量添加DPM客户端
http://gallery.technet.microsoft.com/65d3a1aa-47a7-4129-8d08-eb206e81f6ae

VMguest properties..in excel
Take properties of VMguest in VMware environment. The ouput will be automatically append to the Excel.
http://gallery.technet.microsoft.com/f50532c5-085b-46a0-a62b-45756e9e04b1

Windows Server AppFabric Database Reset
Script to clear Windows Server AppFabric persistence and monitoring databases.
http://gallery.technet.microsoft.com/e7097641-3087-4ab8-b81c-2d7356717922