Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Powershell: Finding IPv4 Address Using WMI

Hello,I have created a Powershell script which queries a computer for it's Name, Manufacturer, Model Number and Serial Number. I also want it to include MAC Address and IP Address. Here's part of the...

View Article


error creating efi partition with powershell

Hello. I have a problem when trying to create the partitions for installing windows 8 on a GPT disk. The error happens when trying to create the efi partition. The command that is in bold. The error...

View Article


Windows 7/Server 2008 Security Eventlog VB Script

Hello,This is my first time posting here so I hope someone can help me.  I have a VB Script that I use that grabs the security event logs and parses them into an excel spread sheet.  Everything works...

View Article

Reseting a Local Users Password on a Workgroup Computer

Hello AllCan someone please help me with the following issue please.Ultimate goal: Reset a Local Users password on a Workgroup computer (not joined to the domain) remotely. Assuming the workgroup...

View Article

PowerShell script to export all folder shares, Group & NTFS permissions

I have 173 servers that all have multiple shares.  I have a .CSV file with a header of "ComputerName" that I would like to import into PS, loop through and do an Export-CSV with the file path, read,...

View Article


Reference the "Noteproperty" of an object from within a string

Hello...this is more of a learning question...I am just curious if there is a more effecient way to do something:Lets say I have the following code (simplified version of what am I actually trying to...

View Article

Systems Administrator

Hi, I am trying to query an Active Directory OU for specific computer names, and then move them to a different OU where I can store them for a few days before I disable them from the domain. Can you...

View Article

Disk number only from Get-Disk

I'm writing a PowerShell script and I want to get the Number only from Get-Disk.Something like this.   $DiskNum=Get-Disk|Where-Object–FilterScript{$_.Bustype-Eq"USB"}|Select-ObjectNumberHowever I want...

View Article


Script to Scan For Hardware Changes

We are having USB driver issues with the HP ElitePad 1000 G2, Windows 8.1 Enterprise x64.  I know what the problem is and have tickets open with both HP and Microsoft to permanently fix the problem,...

View Article


Disable Enhance Pointer Precision with Powershell

I am trying to find a way to automate disabling of the Enhanced pointer precision in Powershell.  I have all the data for the basis of the code but it appears to require calling some C code to run the...

View Article

looking up latest iana service list programmatically

hi, is there an online API provided by IANA or a similar authority for retrieving the latest registered port numbers (i.e. services) list? apparently in Windows an application called ArcSDE maintains...

View Article

Timestamp required in output file within VBScript

Hi Guys,I have designed a script which is working fine and creates a log file for every command executed from input file. Now what I want is to insert current timestamp  before every entry in output...

View Article

How to import Option 43 in Hex with PowerShell

Anyone know how to import option 43 in Hex value such as 1H03A802A? The following script used by IPAddresses.Import-Module .\Microsoft.DHCP.PowerShell.Admin.psm1 Import-Csv D:\dhcp.csv | foreach...

View Article


compare folders

Hi I have this script to compare folders, but would need: 1. Export result to a txt 2. If there are differences, showing an error of "everything is the same in both folders" 3. Why do I get the 2 /...

View Article

Iterating powershell code for scheduled reboot jobs -REQUIRES URGENT HELP

Hello Everyone, Being windows administrator it is necessary to patch the Servers till the latest and so its necessary to Reboot them after patching in order to see the effects the patches.I have...

View Article


Maximum size of input CSV/TEXT file into Powershell

Dear friends,I need to analyze the ACL/ACE migration LOG generated through SubInACL to get the count of successful migration. With Regex in PowerShell, I am able to find successful changes done by...

View Article

Maximum size of CSV/Text file as an input to PowerShell

Dear friends,I need to analyze the ACL/ACE migration LOG generated through SubInACL to get the count of successful migration. With Regex in PowerShell, I am able to find successful changes done by...

View Article


Win10 Browse for networked folder or share

So I can't seem to get BrowseForFolder, in vbscript, to show mapped or networked drives and locations in Win10 :\Dim folderOptions, oShell, oFolder, oFolderItem  folderOptions = &H1 + &H8 +...

View Article

change local admin password with powershell and net user

Hi,I am trying to change pass for local administrator account wit something like this:foreach ($computer in $computers)invoke-command -computername $computer  -scriptblock {net user administrátor...

View Article

Power shell scripting | Schedule job | Excel VBA

Hi,I am trying to schedule a job using windows power shell scripting to run an excel vba macro automatically. Power shell code$excel = New-Object -comobject excel.application$workbook =...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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