Posts

Showing posts from June, 2014

How to share a folder / shared folder in windows server using windows PowerShell with example

Quite easy, with a one-liner. Windows Server 2012 provides Windows PowerShell cmdlets and WMI objects to manage SMB file servers and SMB file shares. The SMB cmdlets are packaged into two modules called SmbShare and SmbWitness. These modules are automatically loaded (thanks to new module auto-loading feature) whenever you refer to any of the cmdlets included. No upfront configuration is required. Note: Check the output of Get-Module command before and after you run the following one-liner to see that SmbShare module is loaded behind the scenes.) New-SmbShare –Name MyShare –Path C:\Test –Description ‘Test Shared Folder’ –FullAccess Administrator –ChangeAccess DouglasAdams -ReadAccess Everyone Credit : http://powershellmagazine.com

How to install Windows PowerShell Web Access (PSWA)

Windows PowerShell Web Access is a new feature in Windows Server 2012. It acts as a gateway, and from there you can run Windows PowerShell commands on any machines in your environment. The webpage is entirely Javascript-based, so you can access the console on almost any device with a web browser. You can install and configure PSWA for testing purposes in three easy steps: Install-WindowsFeature -Name WindowsPowerShellWebAccess –Verbose Install-PswaWebApplication -UseTestCertificateAdd-PswaAuthorizationRule -UserName * -ComputerName * -ConfigurationName * # open the Windows PowerShell Web Access start-Process https:/dc.contoso.com/pswa Credit : http://powershellmagazine.com

How to do a schedule job using Windows Power shell with example

How to do a schedule job using Windows Power shell with example Job scheduling allows you to schedule execution of a Windows PowerShell background job for a later time. First thing you do is create a job trigger. This defines when the job will execute. Then you use the  Register-ScheduledJob cmdlet  to actually register the job on the system. In the following example, every day at 3am we back up our important files: $trigger = New-JobTrigger -Daily -At 3am Register-ScheduledJob -Name DailyBackup -Trigger $trigger -ScriptBlock {Copy-Item  c:\ImportantFiles d:\Backup$((Get-Date).ToFileTime()) -Recurse -Force -PassThru} Once the trigger has fired and the job has run, you can work with it the same way you do with regular background jobs: Import-Module PSScheduledJobGet-Job -Name DailyBackup | Receive-Job You can start a scheduled job manually, rather than waiting for the trigger to fire: Start-Job -DefinitionName DailyBackup Credit : http://powershellmagazine.com

List of known issues with ProLiant servers and Windows 2008 R2 SP1 | Known issues and workarounds

Known issues and workarounds Lists known issues with ProLiant servers and Windows 2008 R2 SP1. Issue Details Issue 1 :  Windows 2008 R2 SP1 does not install on the HP ProLiant Servers configured with the Intel 82801FR SATA RAID Controller. Description :  While installing the OS, the SATA hard drives connected to the Intel 82801FR SATA RAID controller do not appear when selecting the drive for the OS. Solution :  Download the latest Intel 82801FR SATA RAID controller driver from the HP website and use that driver during the Windows 2008 R2 SP1 installation. To manually install the missing driver, go to Device Manager, and then select “Adaptec HostRAID SCSI Processor Device.” Issue 2 : Hibernation fails on Windows 2008 R2 SP1 installed on ProLiant Server. Description :  ProLiant Servers with Windows 2008 R2 SP1 installed will not hibernate. Workaround  : Microsoft will release the hot fix KB2496744 to resolve this issue.

Windows Server 2008 R2 SP1 key features

Windows Server 2008 R2 SP1 key features: Dynamic Memory in the Hyper-V role :   Efficient use of available physical memory :     Memory pool that all virtual machines can use Memory dynamically added or removed based on current workloads Tested on guest virtual machines (VMs) that run any the following OSs:                          Microsoft Windows Server 2003 SP2 Datacenter or Enterprise edition                          Microsoft Windows Server 2008 SP1 Datacenter or Enterprise edition                          Microsoft Windows Server 2008 R2 Datacenter or Enterprise edition                          Microsoft Windows Vista® SP2 Enterprise or Ultimate edition                          Microsoft® Windows 7® Enterprise or Ultimate editions Direct Access Enhanced : Scalability and high availability Enhanced support for Managed service accounts (MSAs) : MSAs can be used on domain member services in perimeter Networks Performance tuning for service pr