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

Convert Large Amounts of Virtual Machines from VMware to Hyper-V...

New 5nine V2V Easy Converter 3.0 with PowerShell API and command line interface provides fast and easy-to-use VMware to Hyper-V Virtual Machines conversion for enterprises and Cloud providers who need...

View Article


Iterating Years In PowerShell

I was running a data extraction process which accepted an ISO format start date and end date but because of the time-span involved it would time-out before completion.Read More

View Article


Powershell PSObjects does not save data in excel sheet.

Hi, I am trying to save Powershell script with PSObjects to capture Registry data which is not able to save in excel sheet.Earlier i have captured registry data using Microsoft.Win32.RegistryKey, &...

View Article

CSV File Import into AD

Human Resources is going to start providing a .CSV file to me on a regular basis to be imported into AD.The file will only contain "employeeID" "department" and "company".  It will not have the UPN,...

View Article

Error: "Input string was not in a correct format."

I get this message when running my script, please could you advise how i can overcome the issue so that i should be able to quit the game at any point?Cannot convert value "Q" to type "System.Int32"....

View Article


Search list of servers for file (with varying name) and copying it to...

Greeetings!First post. Also, I'm new to Powershell. I found Piotrek82's script online and want to use it to help me find a particular set of files on all of my servers. If the files exist, I want them...

View Article

Reset Active Directory Users to Require Passwords

Q: I have some users who were configured in Active Directory to not require passwords. I need to reset their profiles to require passwords; how can I easily accomplish this?Read More

View Article

Breaking Down PowerShell's Scope

One constant about PowerShell is that someone is always learning it. So I shouldn't be too surprised to get e-mails or tweets about beginner topics. It helps remind me that Prof. PowerShell needs to...

View Article


Setting Up PowerShell on Your Desktop to Support AD, Lync, and Exchange in...

You will find that there are many times you need to run PowerShell scripts or cmdlets from your desktop because you need a combination of modules or you have other needs.Read More

View Article


Assistance with remoting

Our normal users are not allowed to install fonts on their win 7 pc's.Is there a way I can remotely grant this ability using powershell  remoting ?

View Article

XML Code

So I downloaded the Powertips Monthly Vol 11, I wanted to try  the weather retrieval$weather = New-WebServiceProxy -Uri http://www.webservicex.net/globalweather.asmx?WSDL$data =...

View Article

Make `n to create a new line for redirected output

HelloI have a string as below:$String = "Test1`nTest2"While printing to screen, I have 2 lines. But on redirection I get one line.Code: $String >> Log.logOutput for Log.log: Test1Test2How can I...

View Article

Value from Textbox Into Array

Hi...I have been using a PS script to add printers remotely to PC's in my org; and its been great.  I now want to convert this into a windows form for various reasons.So I have the form created and now...

View Article


Invoke-RestMethod to upload a csv file with no contentType

Dealing with a special webservice I must upload a csv file.The JavaScript code to do this using jQuery is:var data = new FormData();data.append('file', document.getElementById('file').files[0]);...

View Article

Getting date and comparing

I want to compare the present date with the one in a file$fecha1=Get-Date -format "dd/MM/yyyy"$fecha2=((Get-Item C:\HOSTSUPDATE\HOSTS).LastWriteTime).Tostring().substring(0,10)if $fecha1 -eq $fecha2)...

View Article


help with running batch file on remote computer

Hello guys,i have the local computer called comp1 and the remote computer name comp2i have a batch file on the local computer and i want to run it on the remote computer, I did in both of the...

View Article

Get subset of data

If I run this command get-wmiobject -class Win32_ComputerSystem  I get this information.Domain              : company.orgManufacturer        : Dell Inc.Model               : OptiPlex 7010Name...

View Article


Access denied when remotely running a batch file

Hello everyone,I need to remotely run a batch file, same way as the author of this topic needed to: http://powershell.com/cs/forums/t/14235.aspx?PageIndex=3My batch file needs to open the user's...

View Article

The PowerShell Humanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities Read More

View Article

PowerShell 3.0 Replaces $_

Q: I understand that in PowerShell 3.0 I no longer need to use $_ to look at attributes of piped objects. How can I view this information?A: One of PowerShell's most powerful features is the fact that...

View Article
Browsing all 6937 articles
Browse latest View live