CyberRoom

CyberRoom.NET

Continue

Amsterdam Aviano Brussels Bucharest Cádiz Frankfurt Granada Landstuhl Málaga Montréal Paris Québec Ramstein-Miesenbach Reykjavík Sevilla.

Nederland Italia België România
España Deutschland España Deutschland
España Canada France Canada
Deutschland Ísland España.

Information Technology


Data Recovery

System Builder

Video Editing

Web Design

Command Prompt (CMD)

Assign/Change/Rename HD Letter

C:\WINDOWS\system32>diskpart

DISKPART> list volume

  Volume  ###  Ltr
  ------- ---  ---
  Volume  2     C
  Volume  4     K

DISKPART> select volume 4

Volume 4 is the selected volume.

DISKPART> assign letter=G

DiskPart successfully assigned the drive
letter or mount point.

Forcing Group Policy

C:\>gpupdate /force

Updating policy...

Computer Policy update has completed
 successfully.

Viewing Group Policy

C:\>gpresult /v

Couldn't Create A New Partition Or Locate an Existing One

C:\WINDOWS\system32>diskpart

DISKPART> list disk

  Disk ###  Status         Size       
  --------  -------------  ------- 
  Disk 0    Online         3726 GB 
  Disk 1    Online          931 GB

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning
the disk.

DISKPART> create partition primary

DiskPart succeeded in creating the
specified partition.

DISKPART> active

DiskPart marked the current 
partition as active.

DISKPART> format fs=ntfs quick

  100 percent completed

DiskPart successfully formatted
the volume.

DISKPART> assign

DiskPart successfully assigned 
the drive letter or mount point.

DISKPART>

PowerShell Commands

Assign/Change/Rename HD Letter

PS C:\WINDOWS\system32> Get-Disk

Number Name     Size Partition
------ ----     -------------
0      ST400      3.64 TB GPT
1      WDC      931.51 GB GPT
3      SanDisk  232.88 GB MBR

PS C:\WINDOWS\system32> Get-Partition 
      -DiskNumber 3 | Set-Partition 
      -NewDriveLetter H

Delete/Remove SmbShare Folder/Smb ShareNamed Data

PS C:\>Remove-SmbShare -Name "SmbShare
Named Data"

Confirm
Are you sure you want to perform this
action? 

Performing operation 'Remove-Share' on
Target '*,SmbShare Named Data'. 
[Y] Yes  [A] Yes to All  [N] No
[L] No to All  [S] Suspend
[?] Help (default is "Y"):

Delete a Smb ShareNamed Data Without Confirmation

PS C:\>Remove-SmbShare -Name "VMFiles" 
-ScopeName "Contoso-SO" -Force

Force Group Policy Update From Server

C:\>powershell

PS C:\>Invoke-GPUpdate -Computer
'pcname' -Force

regedit (run command)

Folder Redirection Windows 10: User File Folder Pointing Locally Or To Wrong Network Directory

Documents

• Filter: Windows 10
• Action: Add Value
• Process Action Post Login: False
• Hive: HKEY_CURRENT_USER

• Key: Software\Microsoft\Windows\
  CurrentVersion\Explorer\
  User Shell Folders

• Data Type: REG_EXPAND_SZ
• Value: {F42EE2D3-909F-4907-8871-
  4C22FC0BF756}

• Data: \\Your_Server\Share\%username%\
  Documents
  
• Description: Documents in User's Files

CyberRoom.NET

Contact Form

Nunc diam leo, fringilla vulputate elit lobortis, consectetur vestibulum quam. Sed id
felis ligula. In euismod libero at magna dapibus, in rutrum velit lacinia.
Etiam a mi quis arcu varius condimentum.
















CyberRoom.NET

Send all inquiries to e-mail: info@CyberRoom.NET

MMXVIII