Quantcast
Browsing all 21975 articles
Browse latest View live

Recursively create directories?

Can Powershell recursively create directories?For example, I want to create the folder /foo/bar in one step.  Is this possible in Powershell?

View Article


How to get all available VM OS details from my Hyper-v-host?

HI,I have one VM Server in my windows 8 machine, in that I have 2 vm'. Now I want to find alll vm's os detials?Thanks in advance.A Pathfinder.If a post answers your question, please click...

View Article


Add Lync License To Multiple users

HiAll our users are Licensed for Office365  for EXCHANGESTANDARD.The company has recently added Lync services.We several groups of users who need to be licensed for Lync (MCOSTANDARD).I exported the...

View Article

question updating app pool on IIS web app

When I use set-item to change the app pool for an existing web app, I get path not found error.However, when I use Set-ItemProperty to set the app pool it works just fine.  What am I doing wrong when...

View Article

Get DFS Targets in Powershell v2

Hi, what is the best wat to display the DFS Targets paths of a DFS Share?I tried DFSutils but i can't find a command to do that.It wil also be better if i can do it without loading any...

View Article


get process CPU usage

hi,how can i get all process CPU usage like task manager show?some of my monitor server have few CPU cores to lots of CPU coresTHX

View Article

How do I expand a ActiveDirectorySubnetCollection so I can view all elements...

Hello,In the following, I list SiteName, Location, Subnets, and Severs, however I don't see all the servers or the subnets, presumably because Subnets are an ActiveDirectorySubnetColletion and Servers...

View Article

Changing folder owner adds full control to that user when scripted but not...

i have a script that basically changes the owner of everyone homepath and sets them as the owneri dont want the user to have full control of any folder just the modified permission which i use the...

View Article


How do I expand a ActiveDirectorySubnetCollection so I can view all elements...

Hello,In the following, I list SiteName, Location, Subnets, and Severs, however I don't see all the servers or the subnets, presumably because Subnets are an ActiveDirectorySubnetColletion and Servers...

View Article


when do simple parenthetical grouping matter in PowerShell code?

When do simple parenthetical grouping matter in PowerShell code?Here's one example when using parenthesis matters (thanks to Boe Prox for inspiring this example):<#c:#> 'abc' >xo<#c:#>...

View Article

Need Powershell script for universal drivers of Ricoh printers which needs to...

Hi there,Could someone help on this powershell script.How to write a powershell script for universal drivers of Ricoh printers which needs to be updated on Windows 2008 servers. Both 32 and 64...

View Article

Can't remote computer-to-computer using PowerShell

Hello. My issue is that I can't seem to connect computer-to-computer using Powershell. We are using Windows 7 computers on our domain with Windows 2008R2 servers. From my computer I can establish a...

View Article

putting a massive amount of data into a single variable

I'm running a command to find the amount of space .xar files (it's a Citrix temp file of sort) are using on my organization's main file server. The server itself presents quite a few terabytes of data...

View Article


Search and Replace text in file using PowerShell

I want to schedule a script in PowerShell to search a directory for an XML file for a particular text string and replace it with a different text string and then save the file with the same name, the...

View Article

Pass array variable as parameter in powershell command.

Hello,could somebody help me with my script ? I have problem to define parameters inside one cmdlet.Here is my code:$Disks = gc c:\temp\a.txt for ($l = 0; $l -lt $Disks.length; $l += 4) {  command...

View Article


Compare list of specific users to AD via Powershell

i have a list of 70-80 some odd users that i need to check for on AD if they have accounts or not.one of my co workers suggested i make a PS script to make the process easier than just going in and...

View Article

Detect if variable has been previously declared?

Does powershell have a way to detect if a variable has been previously declared? 

View Article


Image may be NSFW.
Clik here to view.

Functions from Module Scoping Question

Hello,I have the following case:I`m using module that contains several functions, some of them are executing commends in remote sessions. These functions are used from Powershell Script. The issue is...

View Article

replacing character and number e.g #1154;#" with a comma using powershell

Hi there,       How can i replaceI have a string like below  and would like to replace ";#1154;#" with a comma. tried using (;#)\d{4}(;#)" but it doesnt workAmber Wood;#1154;#John Roberts;#1121;#Peter...

View Article

WebAdministration module requirements?

Does the Powershell WebAdministration module for IIS have any pre-requisites (minimum OS, minimum powershell version)?

View Article
Browsing all 21975 articles
Browse latest View live