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

remotely checking the server port is open or not

I have a project where i need to do the belowFrom ServerA  telnet to mulitiple server on a specific port.ex:Source = Server ADestination = ServerB,ServerC,ServerD,ServerE Port = 80Usually i have to...

View Article


How to replace sting value with variable.....

In the wonderful world of Exchange 2010 running the command below is successful evaluating and exporting email messages with the subject of "ozzzzzy". New-MailboxExportRequest -Mailbox $dlist.alias...

View Article


Reference Column in Datatable

HiI have the following code below and would like to know how I can reference the column UserName in the FOREACH statement so I can manipulate the value.  Many thanks$SqlConnectionString = "Data...

View Article

Telnet using powershell

I have list of servers, which should telnet to an ip address to port 12232, and display the result as Yes, IF the server can telnet to IP address, or NO, when it fails.How do I write a script in...

View Article

Merging multiple Large (500 MB+) CSV files into one to comparing it to...

Hi Experts,I have a requirement to combine multiple large CSV files (500 MB+) files into one, it is working super fine with csv files of smaller size (till 200 MB) and doing what I want to do i.e....

View Article


([adsisearcher]"(&(objectClass=person)(objectClass=user)(displayname=$Display...

$DisplayName="ahamed Asif x" ([adsisearcher]"(&(objectClass=person)(objectClass=user)(displayname=$DisplayName))").FindAll().propertiesComes empty why?

View Article

Take ownership of a registry key, and change permissions

Hello,I am writing a powershell script to configure a W2008-R2 Server. In one of the steps, I need to take ownership of an existing registry key, and then give full control permissions to the...

View Article

Clearing Out Bleeding Scripts when using GWMI

OK, so I may be in the minority, but I don't like when the scripts I write bleed all over my screen.  And when I use GWMI, I find that they bleed more often than not.  See, I often work with systems...

View Article


Detect mapped drive path and disconnect if exists

Hello!My issue is that a former admin somehow managed to get a mapped drive onto several hundred machines. The user under which this mapped drive was created is causing us a huge headache. What I'm...

View Article


Using Registry UninstallString to remove software

I have some code that will search the registry for specified software, and return the UninstallString. I am trying to make this into a script that will uninstall various software. For example,...

View Article

Export multiple variables to csv

I am a bit lost in adding my results to a csv.I tried several way, but the objects are not written to csv.########################################################## # Var...

View Article

cmdlet equivalent to c# "System.Diagnostics.Trace.Write"

hi, I'm writing a script and I want its output to be picked up by the debugview utility, in C# I'd achieve this by using System.Diagnostics.Trace.Write (or System.Diagnostics.Debug.Write). Please can...

View Article

Try / Catch

Hi all, I have used this in the past but not having much success this time. In the below a Failures.txt file is created but is blank...BackupTarget = "\\server\share" $TodaysDate =...

View Article


Connect-IscsiTarget AuthenticationType parameter is case sensitive

Hi Folks:The 'AuthenticationType' parameter of the Connect-IscsiTarget cmdlet must be UPPERCASE to work. The documentation at 'http://technet.microsoft.com/en-us/library/hh826098.aspx' for the...

View Article

MSSQL 2012 Backup Timeout

Dear Microsoft Technet Team,we have an issue regarding creating a Backup using Powershell. Each time we try backing up on special database we get into a timeout after 10 minutes (default connection...

View Article


Image may be NSFW.
Clik here to view.

Cert error when trying to install WMF 4.0

We have two different Servers both running Server 2012 and are fully patched. When trying to install WMF/Powershell 4 we get the following error:One Server has TFS Server 2012  Installed(Server1). The...

View Article

Registry Uninstall of 3rd party applications

While browsing the forums I found this thread. I'm wondering if it is possible to modify it so it will look into a CSV file that contains the names of the applications I want to remove?If this is...

View Article


how to add multiple users with passwords and groups

we are a college adding students to 365 education and we need add their password, license and put them in a group. I believe it can be done by powershell. Does anyone have a script or how would it be...

View Article

Set-ADUser to modify givenname and surname attributes based upon displayname...

Hello to everyone, i'm trying to restore AD Users records to a proper shape. More in details,current AD users records contains only the displayname and the other mandatory attributes,everything is...

View Article

How to get excel data from a single cell?

Hi, I'm looking to take a group of 31 excel workbooks, loop through them, get the value from the same field (M7), which is of the General format, and get a sum total for all of the workbooks.What I'm...

View Article
Browsing all 21975 articles
Browse latest View live


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