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

Powershell command execution differences

Hi all,i have a question regarding invoking external programs in a powershell script.Recently i had to deal with removing java. So i have written a small script which gets the Product ID and removes...

View Article


Need Powershell Script to get shared folder and NTFS permission from list of...

Hi Friends, I need powershell script to dump all the shared folder and thier permission from serverlist.txt. the below code just giving me the shares but not the permissions.$strComputer = gc...

View Article


Adding Logo / Photo to CSS body in Powershell

Howdy,I wrote a script that collect information about Lync Environment and send it as HTML via emailI was wondering if it's possible to add the company logo to the Beginning of the HTML report top left...

View Article

How Do I Modify Folder Time Stamps? Altering Folder Creation Time, Last...

Hello,I need to change time stamp on my folders. I created a small script, which, however, seems to not be working. What am I doing wrong? Could somebody please help here?The script:Function...

View Article

Last resort - using a gui to keep my powershell session alive

Hello All,I've been trying to take this code which watches a service through wmi event - and then restarts it if it gets shut down - and create a service out of it. I tried to compile as service...

View Article


Add-Computer to domain with new name returns error

Hi Folks:I am writing a script that configures servers and joins them to a domain. Near the end of the script I've added the command,Add-Computer -DomainName 'domainname' -Credential (Get-Credential...

View Article

Comparing Powershell two excel files and repalce

I am new to Powershell, I need help comparing two excel files and need for it to look at the old file and get info from it and push it into the new file. If the ID is same. Here is an Idea of what I...

View Article

how to use sub-Array notation to specify variables in remote sessions?

I'm trying to create a script that will query the registry on remote machines for multiple keys and values.   I'm running into difficulty when trying to parametrize the keys and values to query. My...

View Article


Image may be NSFW.
Clik here to view.

New-SPConfigurationDatabase : Microsoft SharePoint is not supported with...

I'm using the AutoSPInstaller from codeplex and now recieve this error. Is this a problem of my server or is it something I defined wrong in the configDB?The following is my signature:Powershell...

View Article


How to fix WinRM and FQDN issue?

Hi, I'm new to WinRM and I'm trying correctly configure a new deployment of windows Server 2008 R2.  I have already run winrm quickconfig successfully but I'm having a very unusual issue where the...

View Article

Array position where new value starts

Hi,I have an array $a that contains ID in different frequency, and all sorted. I just want to know the "array position" where the ID number changes. For the array given here the result i'm looking for...

View Article

Remote Registry Value with Spaces

I am trying to get the value of this remote registry key. Unfortunately the value has a "space" in it. The value without a space queries fine. What is the correct format to have it not return "Null...

View Article

REgex to find IP address then return a different column

Hi,I've written this script to find IP addresses inside a text file - it uses Regex$input_path = ‘2013-06-19-SyslogCatchAll.txt’ $output_file = ‘ip_addresses.txt’ $regex =...

View Article


to

dear sir , i am already used widows xp ,8 , 7 ultimate all ofthem in my 1 cpu. so i just wants to use widowos 7 ultimate. and others remove 4rm my cpu. so i need a help for boot or remove other 2...

View Article

Script to make a file inventory on a file server

HelloTo accomplish a company audit, I have to create a script that scan our windows 2003 standard file server and create a report with a list of certain files type like mp3, video and so on. In the...

View Article


.bat not working in windows2008R2 scheduled tasks

Hi All,I have created .bat file to call .ps1 in scheduled tasks ,if I run file from folder it working ok but in scheduled it is not working content of .bat file is given below :D:>cd Script...

View Article

Problem using CSharpCodeProvider to add types at runtime

I am having an intermittent problem adding C# types from Powershell.  (If this isn't the right forum, please advise me on where to post my question).I originally encountered this issue using the...

View Article


Exchange online- The WinRM client cannot process the request because the...

When i tried to connect to Exchange online by using powershellthe following error arises for me. $LiveCred = Get-Credential Username password $Session = New-PSSession -ConfigurationName...

View Article

object count not valid

I am puzzled by the following behavior...$files += dir *.xxx    # there are no files with this ext ($files.count is blank at this point because there is nothing in $files)$files += dir *.dat    # this...

View Article

Get-ItemProperty on Remote Server

I need to get the values of a registry key on a remote server. Tried the below without any luck? Is there a simpler method? $strMachineName = "mail02-ny" $objReg =...

View Article
Browsing all 21975 articles
Browse latest View live


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