Posts

Powershell command to Get UPN of all the users in Active Directory also Export to CSV

Image
- Open Powershell in Elevated Mode
- Run the following command :

Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title, userPrincipalName | select DisplayName, EmailAddress, Title, userPrincipalName | Export-CSV "C:\UPN_Addresses.csv"


- You will get the Output in following format :




Download Remote Control Tool for Free : www.wingagaarbin.com

How to create Bulk Users in Active Directory !!

Image
Firstly Create a CSV file in following format :







Go through the CSVformat (Some pointers explained)

Path : Would be the path where you want the Users to get created.

How to find the path :



- Open Active Directory Users and Computer
- Expand your Domain Name / Organization name
- Right Click on the OU where you want the users to get created
- Click on Properties
- Click on Attribute Editor
- Look for Distinguish Name , copy the value
- Paste that in the path of the CSV file

UserPrincipleName : This can vary depending upon the email servers and even .local addresses can appended in there. It has to match your domain name standards.

After adding all the details in the CSV file , save that as bulkupload.csv and copy the file to the Active Directory Server. I am placing my file on the Desktop of the AD server.

Open Windows PowerShell in Elevated permissions (Run As Administrator) and run the following command after modifying the .csv file path.

Import-Csv "C:\Users\binuk\Desktop\bulkuploa…

Recall / Delete a message sent to all the users by mistake - O365

Image
First of all Open Azure PowerShell with Admin Privileges
Connect to O365 (Run the command mentioned below - Input O365 Global Admin Credentials)

Import-Module MSOnline
$O365Cred = Get-Credential


$O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection
Import-PSSession $O365Session -AllowClobber
Connect-MsolService -Credential $O365Cred



Run the following command to delete the message :

Get-Mailbox |Search-Mailbox -SearchQuery 'Subject:"Type the subject of the message"' -DeleteContent

Confirm the deletion , Either one by One or Typing A for all

It will take some time as it will go through all the mailboxes to find the mentioned subject email.

https://support.office.com/en-us/article/Recall-and-replace-sent-messages-ec29964f-ae72-4e32-bbab-945fe3dc3390?CorrelationId=5019f4ff-8ae0-499f-91bd-61d2f63dc911&ui=en-US&rs=en-US&ad=US&ocmsassetID…

How to find the Profile GUID for all the Users logging on to a Machine (For example RDS machine or Domain Controller)

Image
If suppose you want to work on the GUID's in the registry and don't want to go through all the GUID's one by one, then you can try running the following command to get the list of all the Users with their profile GUID's , which make your life easier to troubleshoot.

Open Elevated PowerShell / Command prompt and run the following command:
wmic useraccount get name,sid >C:\Profile.txt

Output format:



Registry Path for Profile List :

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList





Download : WinGag Remote Control Software www.wingagaarbin.com


An attempt was made to load a program with an incorrect format. Error code 0x84B10001.

SQL Server 2008 or SQL Server 2008 R2 installation fails to launch the Main Page and pitches the error message.
"Could not load file or assembly '0 bytes loaded from System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. An attempt was made to load a program with an incorrect format. Error code 0x84B10001."
More Information about the error code “0x84B10001”
err.exe 0x84B10001 # as an HRESULT: Severity: FAILURE (1), Facility:  0x4b1, Code 0x1 # for hex 0x1 / decimal 1 :   BTH_ERROR_UNKNOWN_HCI_COMMAND         bthdef.h   APC_INDEX_MISMATCH                                             bugcodes.h   CDERR_STRUCTSIZE                                                   cderr.h   EVENT_MSCEP_LOADED                                            ceplog.mc # SCEP Add-on is successfully loaded and initialized.   MSG_NO_MEMORY                                                       certlog.mc
Resolution
·Backup the key before making changes ·Go to HKLM…

No proper license can be found. Check your subscription and try again

O365 - Clicking on Distribution Group Tab in User Properties shows an error:-


"No proper license can be found. Check your subscription and try again."
·Uncheck the O365 CAL and Click Apply from Microsoft Online Tab (User properties) · Check it back to assign the CAL again, Click Apply · Open the Distribution Group Tab again, it might show the error again, click on Retry for some time as the distribution group will start showing up.
Other Errors in O365
http://technet.microsoft.com/en-us/library/gg998767%28v=office.15%29.aspx


Visit : www.aarbintechnology.com

Supported Path Of Microsoft Office SharePoint Server and WSS Migration

Microsoft Office SharePoint Server Migration to SharePoint Foundation is non-supported. Many enterprise level features in MOSS will not be available in SharePoint Foundation edition which might result in performance issues.

Support Path for Microsoft Office SharePoint Server Upgrade are listed below:-
·MOSS 2007 Standard Service Pack 2  to SharePoint Server 2010 Standard ·MOSS 2007 Enterprise Service Pack 2to SharePoint Server 2010 Enterprise ·Windows SharePoint Service 3.0 Service Pack 2 to SharePoint Foundation Server 2010 ·MOSS 2007 Server Service pack 2 to Microsoft SharePoint Server 2010



    Visit : www.aarbintechnology.com