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

Can PowerShell detect an audio output device attached to a computer?

Forum members,I was recently given an inventory task. I need to find out the model numbers of monitors attached to PC's in our workplace. I found a script that uses WMI and it worked well.The next step...

View Article


Powershell and Forms

I need some help. I am creating a form that emurates all the drives with some input boxes so items can be change such as lables. It disaplys on the form correctly looks nice but I have don't have any...

View Article


How to use Powershell to add network latency to Windows server 2008 R2 &...

Hi,I am trying to figure out how to use Powershell commands to add network latency to my Windows Server systems to simulate application behaviors in production.Something similar to the tc command with...

View Article

Get Drive Encryptions status using WMI

Hello Guys,I have written a VB script to check if drives are encrypted with bitlocker or not. It gives me "Access Denied" error. I do have required access. The script runs successfully only if it is...

View Article

Assign office 365 license

I have a script which adds an office 365 license to a user, how can I ammend the script so that it added two different AccountSkuID licenses?$AccountSkuId = "ExitCodeZero:STANDARDWOFFPACK"...

View Article


Simple PowerShell output formatting

Import-Module ActiveDirectoryGet-ADComputer -SearchBase 'OU=myou2,OU=myou1,dc=mydomain,dc=local' -Filter '*' | `Select -Exp Name | %{echo $_ ; Get-WMIObject -Class Win32_BIOS -ComputerName $_|...

View Article

Enable powershellmodules?

Hi,I have used this post: http://tomtalks.uk/2013/06/powershell-add-a-persistent-module-path-to-envpsmodulepath/ to add persistent powershell modules but they just don't show up.I can see the entry in...

View Article

Issues with NTEventLogEventConsumer

Hi,  I am trying to create WMI permanent event subscription using MOF. I have created an event provider which provides around 10 properties along with a custom event ID which I want to write to the...

View Article


Image may be NSFW.
Clik here to view.

Win 8.1 - Welcome Screen - Input Language + Format + Location

Hello Everybody,with the International Module (https://technet.microsoft.com/de-de/library/hh852115.aspx) inside Powershell i can set Input Language + Format + Location for the currently logged on...

View Article


Converting a script which updates AD Account Info from VBS to PowerShell

Hey Scripting Guy! I need to convert a VBScript into Windows PowerShell 2.0. The script calls Internet Explorer in kiosk mode, retrieves some information from the Customer (Phone Number, Department)...

View Article

Powershell to pull network share and display their Size

So i have been working on a script to pull network share that are not hidden and display their size. but i am getting a error that states does not contain a method named 'op_addition'. The script...

View Article

Cannot figure out syntax

I have the following script where I am trying to use email to perform a search using a filter to perform a quicker query against AD.  I keep getting aGet-ADuser : The search filter cannot be...

View Article

start /wait - use wildcards

Hi, I have a really simple script and it works great on the RDS server. --start of script-- start /wait C:\Windows\System32\calc.exe logoff.exe --end of script-- The problem I have now is that calc.exe...

View Article


Finding users home directory size to include Linux files.

Hello all,I am in the middle of a project to create a script to find the file size for all users we have in AD, however some of our users use both Windows and Linux. I am using the script found at this...

View Article

Invoke-WebRequest gives a single line CSV file

Hello,I am using the Invoke-WebRequest to extract data from a website that ends with .HTML. The data is stored as a CSV file, however, it is all stored as a single line. I'd like the data to match what...

View Article


Get-netAdapterStatistics equivalent for earlier version of Windows

I came across this post, http://blogs.technet.com/b/heyscriptingguy/archive/2014/01/17/gathering-network-statistics.aspx and found that I can get network adapter statistics by running...

View Article

Dot-source in ISE versus PS window

I am having a strange problem, and I need help figuring out what might be causing it.I downloaded a function.  I ensured it was unblocked so I could run it without warnings.  I load it into ISE and...

View Article


How do I get a VBScript to send a parameter value to sql sp

I want the user to enter the month into the input box: Example: NovMy parameter in sql is named: @CommissionsmonthI know my sp works if ran within sql.  Any help with this would be greatly...

View Article

Unable to run batch script as Windows server 2008 R2 Scheduled Task using...

Hi there, I'm using Windows server 2008 R2 on one of my Pro Env, I have two batch files (See Block code) Both should run when the user is logged off however only batch file number 1 is working All...

View Article

Set the power profile to "High Performance" with powershell on multiple...

I want to set the power profile to "High Performance" and prevent standby on roughly 150 computers using a powershell script.  I am a powershell novice so any help would be greatly appreciated.Thank in...

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>