Go Premium for a chance to win a PS4. Enter to Win

x

Powershell

16K

Solutions

7K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.

Share tech news, updates, or what's on your mind.

Sign up to Post

0
WatchGuard Case Study: Museum of Flight
WatchGuard Case Study: Museum of Flight

“With limited money and limited staffing, we didn’t have a lot of choices in terms of what we could do to bring efficiency. WatchGuard played a central part in changing that.” To provide strong, secure Wi-Fi access within the museum, Hunter chose to deploy WatchGuard’s AP120 APs.

how check ip address in under subnets or not
0
 
LVL 25

Expert Comment

by:Brian B
You have entered this as a post, but it looks like it is a question. To get the best response from the Experts, you should probably re-submit this as a question using the "ask a question" button at the top of the screen, or this link: https://www.experts-exchange.com/askQuestion.jsp

Please see here for further details: http://support.experts-exchange.com/customer/portal/articles/756544-how-to-succeed-at-ee-as-an-asker
0
I've written a very simple PowerShell Script to connect to the following Microsoft Online Services from one Powershell Window:

Office365 Admin Center
Exchange Online
Sharepoint Online
Skype for Business
Security and Compliance Center

You can find the Script here:
https://davidatkin.com/blog/powershell-script-connect-microsoft-online-services-office365/

I know there are alot of these scripts out there but thought I would Share it anyway.
1
I've created a list of useful PowerShell Commands to assist in passing the Microsoft 70-346: Managing Office 365 Identities and Requirements Exam

https://davidatkin.com/blog/powershell-commands-microsoft-70-346/

Let me know if you find any mistakes or feel like a particular command is missing :-).  Thanks all.
1
0
Is there a Powershell command that I can run that will tell me if I am a delegate to any user in my organization? I want to run it against my own mailbox.
0
 
LVL 8

Expert Comment

by:Sean Plemons Kelly, CISSP
Consider reposting this as a question to garner more expert attention.
0
I am sharing with you some quick commands on using Office 365 Power Shell to perform Office 365 admin center tasks from the command line to your Office 365 organization:

How you can Connect to Office 365:

Import Office 365 Module  : Import-Module MSOnline
Connect to your Directory  : Connect-MsolService
Users Commands:

List all users:                        get-msoluser -all
List all users with count:        get-msoluser -all | measure

Change UPN on all unlicensed users:      Get-MsolUser -all | Where { -Not $_.UserPrincipalName.ToLower().StartsWith(“admin@”) } | ForEach { Set-MsolUserPrincipalName -ObjectId $_.ObjectId -NewUserPrincipalName ($_.UserPrincipalName.Split(“@”)[0] + “@acig.com.sa”) }
Remove all unlicensed users:       Get-MsolUser -all | Where-Object {$_.isLicensed -ne "true"} | Remove-MsolUser -Force


Office 365 Licensing Information:

You can use a Power Shell script to check if users have a license assigned directly or inherited from a group:

      1. Run the connect-msolservice cmdlet to authenticate and connect to your tenant as explained on the above commands.
      2. Get-MsolAccountSku can be used to discover all provisioned product licenses in the tenant.

Thanks and hope this might helps.

      
      

2
Powershell script for removing oracle completely from windows
0
 
LVL 25

Expert Comment

by:Brian B
To get the best answer from the Experts, you should probably ask this as a question: https://www.experts-exchange.com/askQuestion.jsp

Please provide as much detail as you can, including what you have already tried.
0
Hyper-V 2016 Trouble...  
HVMMC errorPSSession errorI have two 2012 r2 VM DCs running on a standalone Hyper-V 2016 host.  I set up remote management VIA PowerShell and Hyper-V Management console. I guess over WINRM with CredSSP.  Well everything was working fine (6-8 months or so now).  I all stopped a few weeks ago. I tried to pin it down to a security update but could not.  When I try to start a new PSSession or authenticate on the HVMMC I get an HTTP error code 403.  Everything I have found so far seems to be related to exchange and IIS,  neither of which are on these VM and the host is just Hyper-V it can't run anything else.  Also at the same time I could no longer check point my VM's which is required to work for my Unitrends recovery appliance.  It's like the entire management subsystem is broken.   I am still able to RDP into the host and manage the VMs with PowerShell but that's it...  I looked through application and error logs.  But I didn't see anything that appeared relevant to me...  
0
 

Author Comment

by:Chris Hobgood
Thanks!.... I'm new here!
1
 
LVL 7

Expert Comment

by:Brian Matis
Welcome aboard, Chris!
0
Now cancel the meeting for an office 365 mailbox using PowerShell CMD Remove-CalendarEvents

Please check out my post on the same here.

https://www.experts-exchange.com/articles/30640/Remove-CalendarEvents-Cancel-future-meetings-in-user-or-resource-mailboxes-in-Office-365.html

0
Ready for your healthcare security check-up?
Ready for your healthcare security check-up?

In the past few years, healthcare organizations have become a prime target for advanced attacks. Does your organization have what it needs to defend itself? Schedule your healthcare security check-up today and download our free Healthcare Security Resource Kit today!

hello everyone, Happy to share my 2nd article published on Expert Exchange, there I am sharing a Powershell Tip on converting StringData into a Hash Table using "ConvertFrom-StringData" Powershell CMD, your Feedback, and Suggestions are welcome, please give me your endorsement to help me level up.

https://www.experts-exchange.com/articles/29939/Powershell-Tips-Convert-String-Data-into-a-hash-table-ConvertFrom-StringData.html
2
 

Expert Comment

by:Justin Carey
Have you created a course?
0
 
LVL 9

Author Comment

by:Sunil Chauhan
not yet Justin.
0
0

New freeware from CodeTwo to automate bulk upload of user photos to Office 365


Hi there,

We (CodeTwo) have released a new free tool for bulk Office 365 user photo management - CodeTwo User Photos for Office 365. This application is a twin program of our other well-known freeware for user photo management CodeTwo Active Directory Photos, but it operates in Office 365.

CodeTwo User Photos for Office 365 will handle everything from photo preparation, through auto matching, to straightforward bulk upload of users’ photos to Exchange Online mailboxes. No need to use PowerShell and the Set-UserPhoto cmdlet – the entire process is easily handled via an intuitive GUI.

Here you can watch how the program works:
https://www.youtube.com/watch?v=w6eLrwLVY3o&t=1s?sts=6789

You can also find more details on program’s official website or this blog post.

Enjoy!
1
4
 
LVL 51

Expert Comment

by:Jackie Man
You need to install software like sophos intercept x in computers inside your network to block it.
3
 
LVL 7

Author Comment

by:Brian Matis
Personally, I'm just avoiding opening any Word docs from anyone I don't know... And to some extent, even from people I do know... Most of my document usage these days is with Google Docs, so it's pretty rare that I need a Word doc!
1

Powershell

16K

Solutions

7K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.