Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 8583 articles
Browse latest View live

Quick Tip: Self signed certificates made easy with PowerShell!

Most solutions today require certificates in some way, which means we need them even when setting up a lab/test environment. If you for some reason don’t have a PKI/CA infrastructure in your lab...

View Article


PowerShell Team Publishes New Set of Desired State Configuration Resources

The PowerShell team released a new set of Desired Configuration State (DSC) resources, building blocks that allow the configuration of computer items. This resource kit was published to encourage the...

View Article


RDP and Network configuration verify script..

I have two script and i am trying to compile it to one. But while compiling these two i am not getting the expected output.   Remote network status verification  [cmdletbinding()]param (...

View Article

A few big questions

I have been tasked to create a powershell/sql solution for monitoring up to 50 servers for multiple perfmon counters and hitting WMI for metrics.  What would be the most efficient way to create this...

View Article

String manipulation

I execute this against a server param($serverName)$serverName = "BEAST"@(  "\\$serverName\PhysicalDisk(*)\Avg. Disk Read Queue Length",    "\\$serverName\PhysicalDisk(*)\Avg. Disk Write Queue Length",...

View Article


Remove-Item does not work (Permissions) but "cmd /c 'rd /s /q directory' "...

Hallo,I would like to delete a directory of a user with the powershell (I 've run it as administrator):PS C:\Users> Remove-Item DIRECTORY -Force -Recurse    + CategoryInfo          :...

View Article

Query 2 registry entries for a workstations by OU and output to an excel file

I am just learning powershell of course, but I need to find a way to query 2 registry entries in the same key "HKLM\SYSTEM\CurrentcontrolSet\control\Session Manager\Environment" and then output that to...

View Article

Understanding COM objects in PowerShell (Working with Excel)

Hi all, Im trying to edit an excel doc in powershell and slowly getting there finding bit parts of solutions on the web, in the end it would be lot easier! and beneficial if i could work it out myself,...

View Article


Finding Installed Applications on Servers using the registry

Hello Everyone!This is my first post so let me know if I am doing anything incorrectly. I am trying to find all of the applications installed on the servers in my domain. I usually would use the...

View Article


Update attribute from csv file

Hi, I have a .csv file that looks like the belowREFERENCENUMBERFIRSTNAMELASTNAMEFULL NAMESB363JimmyWhiteJimmy WhiteSB131SteveDavisSteve DavisSB90AlexHigginsAlex HigginsWhat I would like to acheive is...

View Article

Export group membership of user to csv file

Hi, When I run the follwoing command to display group membership of a user I can see the groups.get-aduser -filter { CN -eq "username" } -searchbase 'ou=users,dc=domain,dc=com' -properties memberof |...

View Article

The need for Managed Availability

Managed Availability is clearly a very important component for Exchange 2013, probably more so for the cloud version running inside Office 365 than for its on-premises counterpart. But why do we need...

View Article

SQL SERVER – Start Services or Stop Services with PowerShell – Answer to...

Earlier I asked a very interesting question related to Powershell and T-SQL command.Read More 

View Article


remotely set trusted hosts

I would like to configure psremoting on alot of servers. I was wondering if there a method of setting trustedhosts remotely such as:Invoke-Command -ComputerName $server -Credential $cred...

View Article

Powershell daily tips

I stopped receiving my Powershell Tips quite a while ago.  I assumed it was because of our Central Management (CMS) State of Illinois firewall or Outlook rules.  They have checked and there is NO...

View Article


User access to result a script.

I am trying to write a script... When a User(logging in from his Domain account) runs this script on the console and gives his username, the result would be a customized message for him. That task is...

View Article

Help with script to copy files from one UNC path to another

I need a script that can copy files from one UNC path to another.  This will be running from an intermediary server and copying from one remote server to another.I also need to specify specific files...

View Article


recursive NTFS permissions / change AD of existing users

hi all, i am a reader of the forum for some time now, but never had a question my self... now it's time :-)upfront, i am not a programmer but i use PS often for simple tasks . specially when the normal...

View Article

Monitor folder & Upload files to FTP and download the response file

Hello,This codes are uploading the files to FTP Server, but i need modification to automate it, being a newbie its very difficult for me to get the result, I need help.1. The script to monitor the...

View Article

Deploying System Center Using the PowerShell Deployment Toolkit

What's in a name? With the name "PowerShell Deployment Toolkit," (PDT) one would be forgiven for assuming that this utility is some silly script created to assist those of us who are still living with...

View Article
Browsing all 8583 articles
Browse latest View live