00 Common troubleshootings [FAQs]

How to resolve subfolder inheritance issue: When to have to assign permissions to subfolder only not to parent

  • Add AD group in parent folder with Read access and enable inheritance for it “Includes inheritable permissions from this object’s parent”.
  • Go to a subfolder and add AD group with required permission level and enable ” Replace all child object permissions with inheritable permissions of this object.

For making core to GUI of Server 2012

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell

For making GUI to Core of Server 2012

Uninstall-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

NTFS permissions on a folder – in the case of Modify access but not to delete permissions.

a. Files: User can create, modify and replace but can’t delete and rename.

b. Sub-folder: User can create but can’t modify, replace, delete and rename

How to resolve trust relationship error on VM when you do not have local administrator/administrator group member password

  • Find the VM in SCVMM
  • Right click on VM and select properties
  • Go to Hardware Configuration and then Select the Network Adapter
  • Under Connectivity select Not Connected
  • Login on VM as domain user
  • Rejoin the VM in the domain and it will resolve the issue.
  • Case 2:

If we have already joined the VM in Workgroup and restarted it then:

  • Case 3:

Boot from the Windows 7 DVD Go into PowerShell and put below command net user administrator /active:yes

Below steps need to be followed to remove pagefile.sys to format a drive

1) Start -> Run -> type sysdm.cpl {press Enter}

2) click Advanced (tab) -> Performance, click Settings

3) click Advanced (tab) under Virtual memory

4) click on Change -> Uncheck Automatically manage paging file size for all drives

5) Select C drive -> select No paging File, click on Set -> Click on OK twice -> Reboot the server

What to do if resources are not coming online in SLQ cluster in failover cluster

  • 1. Open Fail-over cluster manager on any node
  • 2. Check which resources are showing offline and then find IP address of it.
  • 3. Ping IPs from both nodes. If not replying from node 1 to node 2 or vice versa then run “ipconfig /flushdns” on both nodes and then ping again.
  • 4. Re-check the resources and it should be online.
  • 5. Coordinate with DB team to move SQL instance accordingly. If they are able to move, the issue is fixed.

What needs to be done to fix Lync “Audio device is not configured” error on VM

  • Open “Device Manager” on VM.
  • Uninstall the all audio devices showing under “Sound , Video and Sound controllers” section.
  • Reboot the VM and re-scan the device manager for recent hardware changes.
  • Logon in Lync client and its audio should be working properly.

Windows failed to start. Status: 0xc000000e [Windows Server 2012/2008]

To recover from this error, use the bcdedit command-line tool. To do this, follow these steps:

  1. Start the server by using Windows Server 2008 R2 media.
  2. Select Repair your computer.
  3. Select Command Prompt.
  4. At the command prompt, run the bcdedit command. Lists of items appear under Windows Boot Manager and under Windows Boot Loader.
  5. Look for the values for the following items:
    1. Under Windows Boot Manager, the Device item should be set to unknown.
    2. Under Windows Boot Loader, theDevice and osdevice items should be set to unknown.
  6. Run the following three commands to correct the settings, and then restart the computer:
    1. bcdedit /set {default} device partition=c:
    2. bcdedit /set {default} osdevice partition=c:
    3. bcdedit /set {bootmgr} device partition=c:
  7. Or, locate X:\Sources\Recovery, and then run StartRep.exe to start a quick automated startup repair utility that corrects boot environment values.

Note This issue occurs only with certain backup tools. When most backup tools are used, you experience no GUID corruption.

Windows Server 2012 R2 Boot.wim doesn’t load during Boot

  1. Basically, you have to mount the boot wim file and unmounted it while using the “commit” switch even if we are not making any changes. I am just posting the solution here;
  2. Mount the WIM file with the command
    dism /mount-wim /wimfile: /mountdir: /index:1
  3. Unmount the WIM file, committing changes (even though you didn’t make any) with the command
    dism /unmount-wim /mountdir: /commit
  4. The only thing I can add to that the WIM you need to modify is normally located under the default WDS folder “.\RemoteInstall\Boot\x64\Images\boot.wim”.

Moving objects between different OU’s in same domain OR Unable to move OU in Active Directory (Access is denied)

Enable Advanced Features and go to the user properties.  Make sure the Protect object from accidental deletion option is not enabled.

I am unable to delete files because of Error 0x80070570 as shown in below screenshot.

errorfile

Please do the following to run a CheckDisk on your hard drive. After running the CheckDisk you should be able to delete the file or files in question:

  1. Click Start -> All Programs -> Accessories.
  2. In the Accessories list, you will see Command Prompt.
  3. Right-click Command Prompt and choose Run As Administrator.
  4. Choose Yes if prompted to continue.
  5. In the black box that appears, type chkdsk c: /F and hit the Enter key.
  6. You will get a message stating that the volume can’t be locked and asking you if you would like to schedule the checkdisk for the next reboot. Type and hit Enter.
  7. Reboot the computer. During the reboot, the checkdisk process will run and repair the corrupted entries.
  8. When Windows comes back up, try to delete the files again.

How to give permission to an account from PowerShell to avoid Gui access denied screen again and again as “continue” or “cancel”.

  1. Open a Command Prompt “As Administrator”
  2. Run the following commands:

takeown /f G:\folder /r /d y icacls G:\folder /grant administrators:F /T

To rest the network in Windows Server 2008 onwards and windows 8. This will remove all the static IP, mask, DNS information and bring to factory reset level.

netsh winsock reset netsh int ip reset c:tempresetlog.txt

CAN’T REMOVE HYPER-V BACKUP CHECKPOINT/SNAPSHOT FROM VM?

  1. Create a new snapshot of the VM
  2. From virtual machine manager, select the latest snapshot and export.
  3. Once the export is completed at a new location. Import the VM into the new host.
  4. Once the VM is online, delete the checkpoint VM.

  Error 1067 SQL server

SQL boxes might are in clustered. The owner nodes are active so the services on the passive one cannot be started

  Server 2012 disk expansion of OS drive while running via CLI mode.

  1. Go to Start, Run, then type. cmd. to start a command-line session.
  2. Type. diskpart. to start a DiskPart session.
  3. Type. list volume. to list the current volumes. …
  4. Type. select volume <volume number> …
  5. Type. extend. …
  6. Type. exit.

How to fix Corrupt Windows Update cache directory “C:\Windows\SoftwareDistribution”?

Run command as below and reboot the system.

Remove-Item -Recurse -Force C:\Windows\SoftwareDistribution

How to copy data from one drive to another using “robocopy”. Also with its all attribute and permissions as well?

Please find the run the below command as run as administrator console and it will save report also in system32 folder.

robocopy S:\ K:\ /E /ZB /J /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE /LOG:Robocopy.log

In above command S and K are the source and destination drive letters. This will vary in your case as per the copy between drives you want.

Below are the description of the above parameters what they does: –

  • /E :: copy subdirectories, including Empty ones.
  • /ZB :: use restartable mode; if access denied use Backup mode.
  • /DCOPY:T :: COPY Directory Timestamps.
  • /COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU). Copies the Data, Attributes, Timestamps, Ownser, Permissions and Auditing info
  • /R:n :: number of Retries on failed copies: default is 1 million but I set this to only retry once.
  • /W:n :: Wait time between retries: default is 30 seconds but I set this to 1 second.
  • /V :: produce Verbose output, showing skipped files.
  • /TEE :: output to console window, as well as the log file.
  • /LOG:file :: output status to LOG file (overwrite existing log).

How to Map Network Drives From the Command Prompt in Windows?

Give a letter that is not being used into the computer and then the share path. please find the below example for the same.

net use s: \\tower\movies

What is the best order of LYNC server as power off and ON

  • Below is the order of Power off

Front End Server, then Edge server and SQL. OWA etc doesn’t matter.

  • Below is the order of Power on

SQL is up and shows healthy, then the Front End servers, then Edge Servers. OWA        isn’t a Lync server just a server that Lync can utilize so the order it starts is irrelevant.

How to enable SMB v 1.0 for windows to access Linux shared location?

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
sc.exe config mrxsmb10 start= auto

After running above command, please reboot the system to take effect.

Error setting up connection dell storage client

“error setting up connection” indicates the Dell Storage Manager service is not running. 1) Double-click on the Data Collector icon. 2) Enter your password. Click Log In. 3) Verify if the Service shows as running in the General Information Tab If it is running select to stop and restart If it is not running either reboot the server or click to start the service Verify the drive where your DSM is installed has free space. Verify the drive where your database is stored in has free space.

OR

Reboot the system where manager software is installed and after that wait for 15-20 minutes. It will bring all service back online and you will able to login.

Leave a comment