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

How to exclude characters from cell, while creating a CSV file,

I am new to scripting. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic...

View Article


add get IE version to this script

Hi,I have being using the Gandalf50 script Display-Computer-Status-and-info-with-Gui' which is fantastic.Does anyone know how I can add some code so I can also get the Internet Explorer version added...

View Article


Need VB code for solving my problem as describe as under.

Hi!Let me describe my architecture. I have implemented domain in my infrastructure(same building and remote location) . Some User ID having rights to install any software in any computer having the...

View Article

AD disabled users from DG & Security group

I am looking for a script to identify all AD disabled users still present in AD distribution group & Security group from entire domain.Please help me.

View Article

Code Check for Disk Freespace

Hello, I have a very basic Powershell command string working, but when I execute it I get an error that says "Attempted to divide by zero".  When doing the math I am not attempting to divide by zero,...

View Article


Hyperthreading status using Powersehll

Hi,Is it possible to find out if Hyper threading is enabled on Server hardware using Powershell command.

View Article

Refresh current user profile

I found this vbscript that does something similar to what i want to do in powershell. I want to be able to refresh the current user profile to see the change without logging out and back in. So is...

View Article

No output parameter evaluation using function and CustomObject

Hello,I have a function which checks for certain event id by accepting 2 parameter values, i.e; ServerName and BackupType. For some reason I am unable to get any output for the function.Function...

View Article


Install Scanner/Twain/WSD Driver?

Hi @all,actually i have in a project a request by thematic driverCustomer has about 300 different MFP Printer (Scan, Print, FAX)I need a routine, where it will be possible to1.) Scan over Local and...

View Article


PowerShell Export-SmigServerSetting -- Won't allow copy/paste; throws...

We're using the following command to export our DHCP server to another server (both W2K8R2):Import-Module ServerManager Add-WindowsFeature Migration Add-pssnapin...

View Article

PowerShell - Remote Sessions, Try{}Catch{}, ErrorActionPreference

Hello everyone,I am encountering issues with Remote Exchange sessions and was wondering what I am overlooking/over-complicating. I am running Windows 8.1/PowerShell 4.0. Reason I mention this is...

View Article

Is it possible to change network adapter priority in windows 7 by command line?

Ik need to change my users network adapters so that the LAN network adaperts have a higher priority than the WLAN adapters.I would prefer to do it trouhg a command line so that is can distrubute it...

View Article

Regarding Batch File (.bat or .cmd file programming)

Hi, I am trying to rename a file as"Serial number_File name_Current Date and Time" Which assigns the prefix as serial number, then the file name and the suffix as current date and time. This should be...

View Article


Listing Access Rights for all of our servers

We are in the process of enforcing new security requirements that call for specific enforcement of user rights (Local Security Policy \ Security Settings \ Local Policies \ User Rights Assignment). We...

View Article

Can I do this any better?

Hi,I am really trying to go more down the PowerShell route, I have a script below to configure network adapter settings, but with all the searching I have done I still have to use WMI for some bits. is...

View Article


Powershell Feature Request

We just had to look at all the users in AD that are disabled, and Powershell works quickly to pull the list. One attribute that would have been very helpful is a disable timestamp. We were looking for...

View Article

Need to do auto SnapShot to hyperv machine with powershell

Hello, I need to do every week once a time snapshot to my v.machine and i wnat to do it with power shell and than a task schdular. i have a  scrip but i keep geting an error :my script:...

View Article


Server 2003, removing the EVERYONE Group from all Shares and adding the...

Former server administrator set up all of our shares incorrectly with "Everyone" in the share permissions. The NTFS permissions are correct but our SOC Demands compliance on the permission side to with...

View Article

Problem sending powershell foreach output to text file

Hello,I'm having some trouble outputing a powershell foreach loop to a text file:foreach($mbx in Get-Mailbox){Get-MailboxFolderStatistics $mbx.identity -FolderScope 'DeletedItems' | select...

View Article

Inconsistent output using Export-Csv - returns partial results -OR-...

As it will become clear, I am new to scripting and even newer to PowerShell.  That said, I have searched for an answer to these specific problems now going on 3 days; including the three that were...

View Article
Browsing all 15028 articles
Browse latest View live


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