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

Add routes remotely Via Powershell

I have csv file  that contains computer name and defaultipgateway  i need to add the routes on this servre   but i am receiving error while doing it remotely below is my script $ADDs =  Import-Csv...

View Article


Remove Characters from Variable

Good day, I have a couple of conundrums with the use of variables from third-party cmdlets.I"m trying to use Equallogic Powershell addin to build a variable that can be passed to Microsoft iSCSI...

View Article


Comparing Folders, Sub Folders, Files by binary and copying the difference to...

Hi All, I have seen examples of using a Compare-Object  in powershell but it gets complicated for what i want to do, i have a rough idea how to use this; firstly i want to be able to compare NEW FOLDER...

View Article

Find System which are automatically updating by internet

Hi team,can any one help me on this , In my environment I have around 1000 servers , we are using wuss for windows update but some server are missing they are updating by internet means automatic...

View Article

How to use multiple classes in Powershell

Hi Everyone,i'm using following code to retrieve page file information, it gives the page file information but not computername. It says thatGet-WmiObject : Cannot validate argument on parameter...

View Article


Combine CSV columns from multiple sources into one

Hi, I am trying to import column from one CSV file and output it into additional columns on a Get-MailboxStatistics | Export-CSV command. The issue with the script I have created is that when use an...

View Article

Powershell-3 on Windows Server 2008 R2 is incredibly slow. How come?

Hello,I installed powershell-3 using Powershell_3.0_Windows6.1-KB2506143-x64.msu.Now powershell takes a felt eternity just to expand get-he in the powershell command line to get-help. It consumes 98%...

View Article

Export CSV not writing complete information to file

Hi,I'm unable to export the results for the follwing code. It is Just exporting only one Server information but not all.When I remove Export-csv comdelet it is showing all Servers informtion on the...

View Article


Read variables from an XML file

Hi all,I'm trying to query valuables in an xml document which is structured quite differently from the examples I've seen around here, and I can't get my head around what to do.The XML document I've...

View Article


Script against outlook mail box is selecting old data

Hi there,I am into this project wherein emails pushed into a folder has to be cross checked whether it arrives.So, to meet this end, I used a powershell script to connect to the mail folder and collect...

View Article

Image may be NSFW.
Clik here to view.

get-process strange behaviour

Today I encountered some weird behaviour by the get-process command. I was working on a tool to get a list of open programs on a remote computer when I encountered some strange...

View Article

add-pssnapin Quest.LogReader.SqlServer

Hi, need help with adding this snapin. I dont know what im doing wrong. I have Powershell 3 installed and LiteSpeed 7.1.Running this code:set-alias installutil...

View Article

Bamboozled by the pipeline again

I have a set of keys in the registry, of which some have a specific value set for (Default). I need to build an array of just the names of those keys with (Default) equal to a certain value. I have...

View Article


How to Extract email subject with date from outlook?

Hello,I am new to powershell and was wondering how i can extract the email subject with date for entire last month? i need to generate a report every month end and have to go through all the emails...

View Article

SET-ACL only works with Administrator privilage

SET-ACL only works with Administrator privilageI need to run a Powershell script to rebuild file's acl from parent folder, it only works when acount runing Powershell Script has admin privileges on...

View Article


get-wmiobject and DS_netbootGUID.value

Hi, I need help to find the correct value to send into a wmi query in order to get the information of a computer in AD based on its netbootguid attribute. Using the wmi query the DS_netbootGUID.value...

View Article

Import-PfxCertificate question

Powershell newb here.  Trying to use Import-PfxCertificate in my powershell script to import SSL cert and then bind in IIS on Windows server 2008R2 OS's.Here is the code:param( [string]$certFilePath =...

View Article


Delete all text after string...

I have a series of text files that I am attempting to parse with PowerShell. I haven't done much with text file manipulation and would love some advice. Thanks in advance to anyone willing to give this...

View Article

Date of most recently installed update

Hi All,I'm looking for a PowerShell script that help me manage my Windows servers who receive updates from our internal WSUS server. We are using WSUS 3.0 running on a single Windows 2012 R2 machine.In...

View Article

Declaring [T] (Of Type) with Powershell

I'm trying to call a method with Powershell that requires an "Of Type" or [T] according to the OverloadDefinition, Ie.OverloadDefinitions -------------------...

View Article
Browsing all 21975 articles
Browse latest View live


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