Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Powershell New-WebServiceProxy How to specify bindings for a WCF service

I've a simple WCF web service to add 2 numbers;  this is hosted in IIS with HTTPS;  I'm able to work with it successfully using a basic Visual Studio Form application. Since the WSDL has multiple...

View Article


-telephoneNumber is not an attribute

The actual attribute name is officephone in AD 2008 telephonenumber will cause the script to error

View Article


Office 365: How to set -MaxSafeSenders?

Hi,Apologies for being a little bit OT, but I posted this question in the Office365 forum and someone suggested that as it's a PowerShell question, I should ask in here:One of our users was having a...

View Article

Problem importing text file into powershell

I am importing a text file into powershell using get-content. The output of the variable in the console is all in CAPS and there is 1 space character in between each character and double the amount of...

View Article

running a memory intensive script remotely

Hi,i'm developing a powershell script that needs to create ram load on a server.the script is suppuse to run from my computer and make a 100% ram usage on other servers (its for a lab test).i found a...

View Article


powershell - Invoke-WebRequest - sourceforge urls/redirection/dynamic content

Hallo,I try to use Invoke-WebRequest CmdLet in Powershell for downloading OpenOffie 4.0:Invoke-WebRequest -Uri...

View Article

Image may be NSFW.
Clik here to view.

New-MailboxExportRequest 265KB

Hi,Im having a problem with New-MailboxExportRequest -FilePath \\servername\PSTs\je.pst -Mailbox jblogs -ExcludeDumpster -IncludeFolders "Junk Email"When I run this command the request completes, but...

View Article

aduser.whenchanged date/time format different

HiI'm using powershell, part of my script uses aduser.lastchanged and writes the result to a registry string.When looking in ad attributes the date/time is for example 19-August-2013 12:25:11 GMT...

View Article


Parse content and count -> Select-String

Hello,I want to parse text and count different value.My script looks like this:cls $count = "" $value = "Test1yesnoTest2thatsitTest4" $value | select-string -Pattern "Test1" | "Test4" | foreach{$count...

View Article


Term not recognized as name of a cmdlet, etc.

In Visual Studio Ultimate 2012, I specify a post-build event that should execute a powershell script. In the Post-build event command line, I...

View Article

How to remove @domain.com from UPN in respective CSV field

Hello,Scenario 1:For e.g. below is my First.CSVDisplay Name      samAccountName       UserPrincipalName               mail...

View Article

Check if specific user is member of specific group

Hello everyone,I'm trying to find out if a specific users is member of a specific group in the Active Directory. Google shows me a lot of examples for loginscripts, Quest's tool and local groups. I...

View Article

How to create 100 test users with the username "testuser" (for example:...

How can I Create 100 test users with the username "testuser" (for example: testuser1,test user2,..etc) with password P@ssword using powershell?

View Article


How can I match wwn with a physical disk?

I have been trying for the last two days to find a way to match a wwn to a physical disk through powershell.  Does anyone have an idea of how this can be done?All of my servers hae a qlogic fiber card,...

View Article

How do I find the Delegated Administrators in Sharepoint

I am writing a report for managment that I hope to run as a Powershell script.One of the items they want is a list of Delegated Administrators for the SharePoint Central Administration site.In the CU...

View Article


running sql query with powershell

Hi,I need to run the following sql query from a powershell script and export the results to a csv file for further processing.SELECT name, label, class_name, severity FROM tng_managedobject WHERE...

View Article

Backup network folders with Powershell

hi guys, i have a windows 2012 box.i have one desktop which has a shared folder.i want to backup the desktop shared folder using powershell.I will run the powershell on the win 2012 box and save the...

View Article


Set-PrintConfiguration functions

With Set-PrintConfiguration I see that it's easy to configure duplex, color, and other features.  I did not see a setting for controlling page banner however.  Does Set-PrintConfiguration, or another...

View Article

Create multiple OUs in Active Directory

Hello I'm trying to figure out how to create multiple OUs depending on how many the user wants. $OU = Read-Host "Type in the name for the OU" $OUnum = Read-Host "How many Organizational Units do you...

View Article

Export Txt file with no delimiter to csv file

I have a text file whose format is similar to:computername  userid filenameJust whitespace in between. I need to split the content and export into a CSV file for further use

View Article
Browsing all 21975 articles
Browse latest View live


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