Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

Powershell v2 | My First Script, Need Guiding Hand for Start-Job Function....

Alright everything thank you for taking a look at the post as I seem to have hit a brick wall... I am trying to "Multi-Thread" aka add the start-job function to my script. I spent about 4-5 days...

View Article


Edit BindingRedirect for GAC assemblies

To further automate our deployments I have to find a way to script the dll GAC bindings. I tried some possible solutions but have to admit that I'm stuck now. These bindings are stored in the...

View Article


Get folder properties from a collection of servers

Im new to powershell and need a little help. I have a script put together that does what I need it to do on a single server but I want it to query the folder properties of a collection of servers and...

View Article

For /F command not working on windows 2003 server

I am unable to run below command  FOR /F "delims==" %G IN ('SET') DO @Echo %Gon one of my windows 2003 server where its working fine with all other windows 2000 2003 and 2008 servers.whenever i run...

View Article

Merge CSV files

Hi, I am writing a script that dumps output into 2 CSV files. Both CSV files contains different column headers (pulled from different data sources). I want to merge both CSV files into a single file....

View Article


Powershell: OnFocus validate identity

I am building a form that will automate my companies computer builds a little better (SCCM doesn't do everything) and in order to make it "fat finger proof" I want to validate that the user id that is...

View Article

Method invocation failed because [System.Object[]] doesn't contain a method...

Hello, When I try to use the split method, it works in PowerShell v3 and not in v2! While I search this in forums, I found relevant posts but not sure why it generate error message in v2! Here is the...

View Article

line breaks in PowerShell source code

http://powershell.com/cs/blogs/tips/archive/2012/10/29/line-breaks-after-quot-quot-and-quot-quot.aspx discusses the fact that PS V3 allows line breaks after the object property . and :: characters....

View Article


Query ACL or Security of a DNS record - Powershell

i would like to query DNS for records that have the security of a the PC so I can delete them all.  I have gotten to the point where i can get the record as an object, but need to know the method to...

View Article


How to copy very large directory trees?

How feasible is it it write a script in powershell, etc... to implement a linux "cp -R" or windows "xcopy/s" program that can continue where it left off after a reboot? I cannot think of clever way do...

View Article

error trying to bind to usere mailbox using Exchange Web Services.

Exception calling "Bind" with "2" argument(s): "The request failed. The underlying connection was closed: An unexpected error occurred on a send." On my workstation using ews v 1.1 it works.   When I...

View Article

Powershell query to determine correct Password Expiration date with Fine...

Hello everyone, I like many people are having problems extracting the true password expiration date out of AD while having a FGPP in place. I have it set for 365 days but any and all queries always use...

View Article

Calling overloaded .NET methods

I have a .NET method; it can be called by passing a string type or an object of type say, myObject. When I call the .Net method, PS thinks that it a string type eventhough I am passing myObject.  I...

View Article


powershell script to login to a linksys router.

When I run the script below I get the following error.  Actually I get it for password and login also.  It opens a second tab with the login information.  How do I get to these fields. You cannot call...

View Article

query other Domain Controllers event logs

hi we have a few accounts that keep getting locked out. we have 6 DC's, 2 of which are server 2008 R2 the rest are server 2008. i have created a scheduled task on the 2 R2 servers to look for event ID...

View Article


PowerShell: Count instances of the different os versions in a domain

Hey, I would like to count instances of windows XP and windows 7 machines in our domain because we are currently doing an upgrade. I need to put this in a existing script, so I can make a chart out of...

View Article

I'm trying to create a P3 script that stop/start services on 3 servers in order.

connect to 3 servers and stop 2 services on each server first and then go back (in order..server 1, server 2, server 3) and then start those 2 services on each. I tried this one but it's not making it...

View Article


PowerShell Custom PSSnapIn deployment failure

Hello, I created a sample of custom PSSnapin, and I want to deploy it, the project was created as Class Library project, with signed key... The project was containing the following code:...

View Article

Functions Advanced Parameters

I am working with the ValidatePattern parameter and need a regex pattern to match a date like so 10/30/2012, I am a n00b when it comes to regular expressions, so not sure how to come up with a pattern...

View Article

Is it possible to verify loaded modules in Implicit Remoting session?

Hello, I'm trying to open Implicit Remoting session to import certain modules from the remote server. I'm able to import required modules and close the session normally. But I'm unable to check whether...

View Article
Browsing all 2562 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>