Monday, January 24, 2022

Exiting a script if certain entries don't follow a certain format. Relatively new to PS!

Exiting a script if certain entries don't follow a certain format. Relatively new to PS!

Hi all

I apologise if this is a little word heavy, so here is a TLDR:

- I need to find a way of making a script automatically exit (and throw an appropriate warning) if any one of five variables does not contain a certain character, or isn't formatted a certain way. 

I am relatively new to Powershell (am using V5), but got in at the deep end by automating a procedure for creating an AD user. The script, in its current format, works perfectly well. 

It uses 5 variable 'variables' that essentially control how the rest of the script operates. It then assigns appropriate values/groups based primarily on where the user will be working out of. 

It is, essentially, ensuring that periods/capital letters/lower case letters are where they should be! If not, the script will either not work, or the entries in Active Directory will be incorrect. 

I have been told that 'regex' will help me here, and I have a working example of it in my script, but that was not written by me (a colleague who kindly donated it). 

Thanks to all who can lend a hand, but this is a little out of my league! Having read the regex portion of my script, I can see how it WOULD help me, but actually implementing it I would find tough. 

Thanks!



  • Edited by Raffles7683 Thursday, March 30, 2017 9:01 AM
  • Changed type Bill_Stewart Monday, May 1, 2017 5:10 PM
  • Moved by Bill_Stewart Monday, May 1, 2017 5:11 PM Unanswerable drive-by question

Reply:

Please,  Ask a question. A ramble not a question.  This is a technical forum.  If you are not a trained computer tech then post your issue here: http://answers.microcrosoft.com


\_(ツ)_/


------------------------------------
Reply:

A vague idea of a possible specification of how you think something might possibly work in some code nobody can see is not a good candidate for a forum question (if we can even call it a "question").

You need to write a very short script that contains only the absolute minimum amount of code needed to reproduce your problem. Also explain specifically what doesn't work and how it doesn't work.


-- Bill Stewart [Bill_Stewart]


------------------------------------

Cortana

I love Cortana because it is searching and launching apps.But the best thing I love it about Cortana that you can search with your voice and also she reminds you things. Thank you.

SQL Server 2008 - Alter Table Switch Statement Fails Where Partition Key Defined as a Persisted Computed Column Contains CONVERT

Here's a very annoying and poorly (or undocumented) issue in SQL Server 2008 Ent. Ed. post-SP1, CU8:

When creating a table with a persisted computed column as the clustered primary and partitioning key (see below), where the computation includes a call to CONVERT, watch out for the representation of this calculation on sys.computed_columns.  The query parser will modify the definition at table creation to insert a default style parameter of "(0)", if no other style is specified.  If the original definition did not include any style parameter and you later attempt to programmatically recreate the table using the stored definition contained on sys.computed_columns, the query optimizer will throw an error when you then attempt to switch partitions from the original table into the new programmatically created table, as follows:

Msg 4966, Level 16, State 1, Line 72

ALTER TABLE SWITCH statement failed. Computed column '%' defined as '%' in table %' is different from the same column in table %' defined as '%'.

This is so, eventhough the two definitions are completely functionally equivalent, considering the default value of the style parameter.  This can cause a lot of headaches, because correcting the problem requires dropping and rebuilding the computed column with a definition that includes the default style parameter.  Alternatively, one has to abandon the use of programmatic regeneration of the table and use a hard-coded table definition for both the original and the new table, both either naming the style parameters or excluding them.

Recommendation:  When designing a table which you expect to partition on a persisted computed column which includes a call to CONVERT, don't forget to always include the appropriate style parameter in the definition, even when using the default style.

Microsoft should correct this to allow that computed column definitions which EVALUATE the same way should not be considered reason to disallow a partition switch.

 


Reply:

Have you considered posting this on Connect (http://connect.microsoft.com/sqlserver) or have perhaps already done so?

Anyway, since this is a documented behaviour with a recommendation (rather a workaround, if you ask me), your best option would be to just follow it... I'm sorry if this is not the kind of answer you were looking for.


ML
Matija Lah, SQL Server MVP
http://milambda.blogspot.com

------------------------------------
Reply:

I found that if I scripted out the table with a computed column appearing thusly:

CONVERT([tinyint],datepart(month,[TimeStamp],0))

and the query parser turned it into

CONVERT([tinyint],datepart(month,[TimeStamp],(0)))

if I edited it into

CONVERT([tinyint],datepart(month,[TimeStamp]))

the query parser would turn it into 

CONVERT([tinyint],datepart(month,[TimeStamp],0)) - identical to what had been scripted out from the original table.

And then the switch statement ran without problems.


  • Edited by SQLKnitter Thursday, March 30, 2017 1:42 PM column names inconsistent

------------------------------------

Delete file in specific path of each user folder

I'm in need of a script that will look thru (enumerate) all users folders for a specific path and remove a file with a specific extention like *.txt.

User1\AppData\Local

User1\AppData\Roaming\

User2\AppData\Local

User2\AppData\Roaming\

User3\AppData\Local

User3\AppData\Roaming\


  • Edited by Zappnet Thursday, March 30, 2017 1:14 PM wrong forum
  • Changed type Zappnet Thursday, March 30, 2017 1:37 PM

Reply:
Based on your narrative what would be desired result here?

Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/

MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance
SQL Server Integration Services: Business Intelligence


------------------------------------
Reply:
And why do you think tsql (or sql server) is a part of this solution?

------------------------------------

How do I perform a "get-mailbox" for all users in an array?

Ok, I'm trying to figure out what has to be a super elementary script... but I am just barely getting past one liner powershell commands...

So, if I wanted to do a simple get-mailbox <user> but I had 2 users that I wanted to loop through it and get both users using a foreach loop or something, how would I do that?  I'm trying this, but I'm getting an error. 

$davidusers="Angela.West","Anil.Hunt"
$mbxs=Get-Mailbox

foreach ($Mailbox in $davidusers)
{
$mbxs
}

All I'm trying to do is a get-mailbox angela.west and get-mailbox anil.hunt.  Obviously I could type these two in a row.  But, what if I had a thousand in an array that I fed into an array then was able to get stats of the mailbox quickly.  But, I just can't see what I'm doing wrong in the above script.

Now, I say foreach ($Mailbox in $davidusers), I defined $davidusers.  I didn't define $mailbox.  But all examples I keep following on the internet show the first variable after the foreach seems to be the verb of the command I'm trying to run.  Doesn't make sense to me, but I'm just trying to follow pattern. 


Reply:

the first thing you need to do is learn PowerShell.  This forum is not intended as a tutorial,  I recommend getting one of the many books on PowerShell or taking one of the many online tutorials.

We cannot teach you basic scripting.


\_(ツ)_/


------------------------------------
Reply:

Hi David,

Please try this as

$davidusers="Angela.West","Anil.Hunt"

$davidusers | get-mailbox 

or

$davidusers | foreach {Get-Mailbox $_}

Regards

Kam

Please make sure to vote or mark this as answer.


------------------------------------
Reply:
That worked.  Thanks.  I'm trying to learn powershell.  I'm also following a course in Pluralsight.  But, I was jumping ahead trying to figure this out because it would help me on a particular task at work like today.  I use powershell daily at work for most tasks.  But most tasks are powershell commands I use daily that have already been tested and tried true.  Over time, I've made custom ones, but I know I have to get way better.  Hence me following Pluralsight for learning.

------------------------------------

Windows 10 first logon is very slow

I like Windows 10 a lot, but there is one major problem that could potentially prevent us from adopting it.  The first time a user logs on to a Windows 10 machine, profile creation takes a very long time; it is usually around 2 minutes 40 seconds before the user sees their desktop.  This is not so bad for our staff machines, as staff tend to use the same machine all the time.  Subsequent logins to a machine where that user's profile already exists take less than 5 seconds.  The problem is with our student machines.  Students move around a lot, using many different machines.  We also clear profiles off student machines every day to prevent them building up over time.  The result is that students will experience this delay pretty much every time they login to a PC.  I have already disabled the first sign-in animation via group policy, but this makes no difference to the overall login time.

Having spent a couple of weeks tearing my hair out, I have managed to get the first time login down to about 22 seconds.  However, I have done this using methods that are categorically not supported.  I'm just trying to get my head around what's happening, and what's causing the delay.  I would not be comfortable using these methods (especially step 3) in a live environment.  Here's what I've tried so far...

  1. Use Powershell to remove unwanted Provisioned AppX Packages (which get configured for each new user at logon).  You'll need to open Powershell as an admin. List them all with the command...
Get-ProvisionedAppXPackage -online | select packagename

Choose which ones you want, then remove the rest with the command...

Remove-ProvisionedAppXPackage -online -PackageName Microsoft.ZuneVideo_2019.6.15731.0_neutral_~_8wekyb3d8bbwe

This example removes Zune Video. I've set up a Powershell script that runs in my SCCM build capture task sequence and uninstalls a list of all the ones I don't want, so these apps are removed from our image.

2. Remove as much as you can from ActiveSetup registry keys, which you can find at...

  • HKLM\Software\Microsoft\Active Setup\Installed Components
  • HKLM\Software\WOW6432Node\Microsoft\Active Setup\Installed Components

Many of the sub-keys within Installed Components will have a value called 'StubPath', which generally contains an executable that is run to configure that component for the new user.  Examples include Windows Media Player, Adobe Reader, Google Chrome, Internet Explorer etc.  Copy the contents of the StubPath value, and add it to the following group policy...

User Configuration > Administrative Templates > System > Logon > Run these programs at user logon

Then configure a group policy preference to delete that Installed Component from ActiveSetup.  The result is that the executable will run immediately after login, when the user's desktop is already available.  I have removed absolutely everything that has a StubPath, with the exception of the Themes Setup component.  (Without this, I just get a black background without our corporate branding etc). You can see the processes running in Task Manager once login is complete, but they have no measurable impact on performance while they run.

3. Lastly, there are some apps you can't uninstall using the Powershell method described above because they are classed as 'System Apps'.  Examples are Windows Feedback, Contact Support, Edge, Cortana etc.  Although you can't uninstall them, you can break them.  You can find them in C:\Windows\SystemApps.  For example, I run the following command in a cmd file during our SCCM build...

rename "C:\Windows\SystemApps\ContactSupport_cw5n1h2txyewy" DISABLED_ContactSupport_cw5n1h2txyewy

Again, choose which ones you want, disable the rest.  (I don't think you can disable Cortana this way, as the service is always running so you can't rename the folder).  There are apparently some that will break your system if you disable them.  I'd leave ShellExperienceHost_cw5n1h2txyewy well alone.

So that's what I've tried, and like I say, our first login is now around 22 seconds.  One annoying exception to this seems to be that the first user to login after a reboot takes longer, maybe around 56 seconds.  If anyone has any other tips (especially ones that are actually supported and don't involve sabotaging system apps), I'd love to hear them! 


Reply:

Hi Rob

are you copying the administrator profile in your sysprep or using the inherent default profile or using a profile stored on the network?.

thanks

Ollie


------------------------------------

WDS Error, then fails to use ImageUnattend.xml

I am hosting WDS on 2008 R2, trying to apply a Windows 7 x64 image.

I have configured the AutoAdd policy to require administrator approval for unknown devices - I am not prestaging devices manually.  WDS is successfully prestaging the device.

My Wds client answer file selects a language, authenticates, partitions, and allows me to pick an image to apply.

After the image is applied, I see the following errors:

WDS event log (client logging is on):

Log Name: Application  Source: WDSIMGSRV  Date: 10/6/2010 2:25:16 PM  Event ID: 265  Task Category: (1)  Level: Error  Keywords: Classic  User: N/A  Computer: :snip:  Description:  An error occurred while processing a domain join information request.       Client Address: 10.114.100.1    Error Information: 0x103 

 

setupact.log:

[0x0b007f]	WDS	ProcessImageUnattend: WdsCliGetUnattendVariables returned hr = [0x0]  [0x0b0080]	WDS	ProcessImageUnattend: WdsCliGetDomainJoinInformation returned hr = [0x8007000D]  [0x0b0010]	WDS	CallBack_WdsClient_CopyPrivatesDone: Failed to process client unattend variables. Error code [0x8007000D].[gle=0x0000057]

 

Setup continues without the ImageUnattend.xml file, which I associated with the image in the WDS MMC.  The server-side contents of the file are:

<?xml version="1.0" encoding="utf-8"?>  <unattend xmlns="urn:schemas-microsoft-com:unattend">   <settings pass="specialize">   <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">   </component>   <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   <Identification>   <UnsecureJoin>true</UnsecureJoin>   </Identification>   </component>   </settings>  </unattend>  

 

What, if anything, am I doing wrong?

  • Changed type Tim Quan Monday, October 11, 2010 5:20 AM

Reply:

Can you post the server tracing logs after this failure occurs? See http://support.microsoft.com/kb/936625 for details.

You should see a line in wdsserver.log that looks similar to the following: "Error processing domain join information. Error [259]." Please post the lines surrounding this in the log file.


------------------------------------
Reply:

Hi,

I have a very similar problem when trying to use an image unattend file:

[0x0b0010] WDS CallBack_WdsClient_CopyPrivatesDone: Failed to process client unattend variables. Error code [0x8007000D]

The strange thing is that the same unattend file works fine either on a CD or USB as autounattend.xml but also weirdly it works when attached as a WDS unattend file assigned at the server level.

When set as an Image unattend file it fails with the above error and is not copied to c:\windows\panther by the looks of it??

I have uninitialised/re-initialised WDS using WDSutil and checked that "WDSServer" is listed on the remoteinstall folder with full control (share and ntfs permissions).

Anyone shed any light on this one??

Thanks,

Dave


------------------------------------
Reply:

Also, the reg key to enable tracing mentioned in http://support.microsoft.com/kb/936625 doesn't exist!?

I have no

Windows Deployment Services Imaging (Windows Server 2008 R2 only)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WDSServer\Providers\WDSIMAGE

I have all the rest, just not the one I need...

The closest key I have is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WDSServer\Providers\WdsImgSrv

And this has no TraceDisabled entry.

Cheers,

Dave


------------------------------------
Reply:

I am having the exact same problem. Did you find out what the fix was???

I am hosting WDS on 2008 R2, trying to apply a Windows 7 x64 image.

I have configured the AutoAdd policy to require administrator approval for unknown devices - I am not prestaging devices manually.  WDS is successfully prestaging the device.

My Wds client answer file selects a language, authenticates, partitions, and allows me to pick an image to apply.

After the image is applied, I see the following errors:

WDS event log (client logging is on):

Log Name: Application  Source: WDSIMGSRV  Date: 10/6/2010 2:25:16 PM  Event ID: 265  Task Category: (1)  Level: Error  Keywords: Classic  User: N/A  Computer: :snip:  Description:  An error occurred while processing a domain join information request.       Client Address: 10.114.100.1    Error Information: 0x103 

 

setupact.log:

[0x0b007f]	WDS	ProcessImageUnattend: WdsCliGetUnattendVariables returned hr = [0x0]  [0x0b0080]	WDS	ProcessImageUnattend: WdsCliGetDomainJoinInformation returned hr = [0x8007000D]  [0x0b0010]	WDS	CallBack_WdsClient_CopyPrivatesDone: Failed to process client unattend variables. Error code [0x8007000D].[gle=0x0000057]

 

Setup continues without the ImageUnattend.xml file, which I associated with the image in the WDS MMC.  The server-side contents of the file are:

<?xml version="1.0" encoding="utf-8"?>  <unattend xmlns="urn:schemas-microsoft-com:unattend">   <settings pass="specialize">   <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">   </component>   <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   <Identification>   <UnsecureJoin>true</UnsecureJoin>   </Identification>   </component>   </settings>  </unattend>  

 

What, if anything, am I doing wrong?

I am having the exact same problem. Did you find out what the fix was???

me


------------------------------------
Reply:

Did you ever get this to work? I've been trying for weeks to get this fixed. But I'm really running out of ideas now.

Sincerly

K


------------------------------------

AVG, MIN, MAX not calculating correctly in Matrix - Help!

Hi

I have a matrix table which is very simple.  It has two groups.  1 row group on date, and 1 column group on category.

The matrix displays the number of items in a category per day.

I would like to add in 4 additional rows at the bottom with the TOTAL, AVG, MIN and MAX in them.  When I add in additional rows to the matrix, the total value is calculating correctly, but the AVG, MIN and MAX isnt.

Current Table:

Expected Result from SSRS:

I added in the expression =Sum(Fields!CAT.Value) to calculate the total categroy value per day.

When I add in =avg(Fields!CAT.Value) in the AVG Column, it is not calculating the average correctly. I am doing the same with MIN(Fields!CAT.Value) AND MAX(Fields!CAT.Value) AND these arent calculating correct either.

Is this something to do with the groupings?  Can anyone help with this? It seems very difficult to achieve in SSRS. Excel takes 2 seconds!

Thanks

  • Changed type dev-13 Wednesday, March 15, 2017 12:42 PM

Reply:

Hi dev-13,

What is your source data stored in original table? Please share some sample data in dataset. Because I wonder whether the detailed values (10, 8, 5, 4 etc.) displayed in matrix are original values or aggregated values which calculated the count of rows under each group instance.

Also, how did you calculate the AVG values?

Best regards,
Yuliana Gu


MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


------------------------------------
Reply:

This functionality absolutely does work.  Many use and rely on it so there is probably something not quite right with your Matrix grouping configuration (Row Group / Column Group) and/or you have not placed the TOTAL / AVG etc cells in the correct group to actually summarize or average across the group range.

Since the AVG is really just the Total / Count you can use a math formula to create the value or adding the dataset grouping (scope) to the AVG function

=SUM(Fields!Cat.Value) / COUNTDISTINCT(Fields!<??RowDates??>.Value)

=Avg(Fields!Cat.Value, "<??YourGroup??>")

SYNTAX for AVG is:  Avg(expression, scope, recursive)

If this works then apply same logic for MIN and MAX


SOTATS, Inc.


------------------------------------
Reply:

Hi

Thank you for your replies.

I got the average to work using

  • =SUM(Fields!Cat.Value) / COUNTDISTINCT(Fields!<??RowDates??>.Value)

The min and max do not work and it is frustrating as  it should be simple.  This is the syntax I am using:

  • =Min(Fields!CATNO.Value)
  • =MAX(Fields!CATNO.Value)

I have tried this too

=Min(Fields!CATNO.Value, "CATGROUP") and it doesnt work.

I have looked at the data in the background and the min is 0 and max is 13, so the min and max is looking at the unagreggated data. Is there any way to direct them to look at the min and max of the aggregated results?




  • Edited by dev-13 Thursday, March 16, 2017 9:57 PM

------------------------------------
Reply:

Hi dev-13,

Sorry for the delay.

Rather than calculating the count value in matrix, we can calculate it using SQL query when creating dataset.

For example,

select Date, CAT, count(item) as CountValue    from TableName    group by Date,CAT

Then, in matrix, drag field [Date] into row cell, drag field [CAT] into column cell and drag field [CountValue] as detailed data. In that case, using AVG(), MAX() and MIN() can bring you desired result.

Best regards,
Yuliana Gu


MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


------------------------------------

Forum Ninjas news - What It Means to Participate on the MSDN forums?

Forum Ninjas

Welcome all to the forum Ninjas news. The Forum Ninjas blog is the official blog of the MSDN and TechNet Forum members. Here you can find some informative posts written by forum's Moderators and Microsoft employees. If you are Forum's Moderator or Microsoft employee you can add your blog as well (for more information please contact Ronen Ariely or Ed Price).

Today, as part of Thursday Best Practices series, Ninja Mandar Dharmadhikari brings us his point of view about What It Means to Participate on the MSDN forumsYou are welcome to read, add comment, and most important give you point of view :-)

  

Want to read more?

Join us to at the Forum Ninjas home page, the page for the TechNet and MSDN forums users (members, Ninjas, Moderators, and guests are welcome)

  Thanks


Mandar Dharmadhikari

Microsoft confirms Windows 10 Creators Update rollout to begin April 11

Forum Ninjas news - What It Means to Participate on the MSDN forums?

Forum Ninjas

Welcome all to the forum Ninjas news. The Forum Ninjas blog is the official blog of the MSDN and TechNet Forum members. Here you can find some informative posts written by forum's Moderators and Microsoft employees. If you are Forum's Moderator or Microsoft employee you can add your blog as well (for more information please contact Ronen Ariely or Ed Price).

Today, as part of Thursday Best Practices series, Ninja Mandar Dharmadhikari brings us his point of view about What It Means to Participate on the MSDN forumsYou are welcome to read, add comment, and most important give you point of view :-)

  

Want to read more?

Join us to at the Forum Ninjas home page, the page for the TechNet and MSDN forums users (members, Ninjas, Moderators, and guests are welcome)

  


signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]

Forum Ninjas news - What It Means to Participate on the MSDN forums?

Forum Ninjas

Welcome all to the forum Ninjas news. The Forum Ninjas blog is the official blog of the MSDN and TechNet Forum members. Here you can find some informative posts written by forum's Moderators and Microsoft employees. If you are Forum's Moderator or Microsoft employee you can add your blog as well (for more information please contact Ronen Ariely or Ed Price).

Today, as part of Thursday Best Practices series, Ninja Mandar Dharmadhikari brings us his point of view about What It Means to Participate on the MSDN forumsYou are welcome to read, add comment, and most important give you point of view :-)

  

Want to read more?

Join us to at the Forum Ninjas home page, the page for the TechNet and MSDN forums users (members, Ninjas, Moderators, and guests are welcome)

  


signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]


Reply:

@Dave Patrick

Did we interview you for the Microsoft Website?!?

I don't see your name in the "Monday - Interview with a Forum Ninja".
It is clear that you should be there. Contact me in-private if you want to be interviewed

Please confirm that you saw this message.



signature   Ronen Ariely
 [Personal Site]    [Blog]    [Facebook]    [Linkedin]


------------------------------------

System Restore Failed to extract File

System Restore Failed to extract...
C:\$Extend\$RmMetedata\$Txf
Unspecified error code... 0x80070005

Douglas Goodman

  • Changed type Douglas Goodman Thursday, March 30, 2017 12:22 AM Hotmail Inbox is starting to allow a few junk Mails in..

Reply:
Did you installed any program, before problem started?

------------------------------------
Reply:
RE: Thread Title System Restore Failed to extract File
Started by: Douglas Goodman

Re:
Did you installed any program, before problem started?    No... Not that we are aware of..! It happened after an Microsoft Update..! Several were installed.. Not knowing which one could've been the *Culprit*..!

Douglas Goodman


------------------------------------
Reply:

Hi,

Please make sure you have admin right, try with different restore point, restore point also sometimes can be crashed.

Do you have Norton or Avast? If yes, try to disable it or completely uninstall both antivirus to test.

Also check this article for further help.

System Restore error. 0x80070005

https://answers.microsoft.com/en-us/windows/forum/windows_7-system/system-restore-error-0x80070005/728b2420-739b-4c9b-8f50-99d0b66d9b19

Best Regards,

Tao


Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


  • Edited by Tony_Tao Tuesday, January 10, 2017 2:08 AM

------------------------------------
Reply:
In addition to the Few Junk Mails Now Appearing
in the Inbox.. *This has never happened to Us Before*..! Even if you Select them to the Junkmail
Folder.. And then Select to Block them.. they're Right back in your Inbox with New emails from the same Senders.. Which show they're able to get past Outlooks Blocked Senders

Douglas Goodman


------------------------------------

how do i edit mail contacts?

In Mail if I type in "John" (for a new mail) on the "To" line I get a long list of all the "John"s in my contact list.

If I go to People and type in "John" I get "Not found".

Where does the first list come from and how do I edit it?


Reply:

You may edit contacts via People App.

You can add, delete or edit any contact.

People app help


S.Sengupta, Windows Insider MVP


------------------------------------
Reply:

There are no entries in my People app!

Yet I get suggestions from my contact list when i click the "To" for a new email

Where do these come from?...(not from my people app)

As I stated above, when i look for known names in the People app, i get "not found".


------------------------------------
Reply:
 If it is not using People, look in Contacts. That is where mine are.

Bill


------------------------------------

so many issues ihave in this pc its better you cheek it out.

  • new folder(2) is my first
  • security of my pc
  • I want to add all users to one powerful
  • drive c is going explore.

Need a script to register or moddify DirectX file installs Windows 10 home latest release

Ok so here is the delema that plauges loads of gamers and games devs just starting out.

I know that Windows 10 has a self protect mode on system files which include installing and overwriting direct X dll files.

the solution im trying to figure out and not having any luck with is trying to find a way to run DXsetup from command line with syntaxes to tell the installer to check for and ignore files already present and add missing files only. I check the error text and debug text and the installer keeps failing the installs because it is trying to force the overwriting of existing files.

Windows 10 is supposed to be bundled with directX 11 however I have unpacked a redistributable for every major release of direct x and found that 90% of the files are not present in the windows 10 operating system therefor trying to install these files has become a major pain in the rump.

I know the x64bit files reside in syswow64 and the x86 or 32 bit versions reside in the system32 folder.

what i need is a tool or script to register the files as a batch in the registry so i dont have to run regserv 32 and 64 over 100 times to register the files.

well a script or batch file to execute to register the files individually in the registry the basic command would ask for the list of files, the location of the files

I tried to just copy the files directly telling expolere to not copy and overwrite what already exists.

idea for future development of windows

Isolate the directX files to their own directory and set registry flags to call the use of the files from that directory possibly with its own tool to repair the files and allow the addition of files and protection of the files placed there. basically relocating them and giving them their own protection and combining all of the redistributable downloads into 1 redistributable with all of the directx files and the installer to look for and ignore the already present files.

  • Changed type Bill_Stewart Friday, April 28, 2017 8:39 PM
  • Moved by Bill_Stewart Friday, April 28, 2017 8:40 PM User should not be doing this

Reply:

You are posting in the wrong forum.  Post in a forum for DirectX or Windows 10 end user support.


\_(ツ)_/


------------------------------------
Reply:

You should definitely not be trying to register DLLs en masse.


-- Bill Stewart [Bill_Stewart]


------------------------------------

Can't access Microsoft Edge

Hello -

Can't access Microsoft Edge. Even the icon in the start menu is gone. This used to work fine. Is there ANY BODY THAT CAN HELP? Surface 3 64gb 1607  Windows 10

Thank you.



Reply:

Used System File Check to recover Edge in the past, see System file check (SFC) Scan and Repair System Files & DISM to fix things SFC cannot (guide by Team ZigZag) on advice on that.


------------------------------------

Using Infopath from Powershell

Really hoping someone can fill in my blanks...

Long story short, I want to be able to use Infopath to convert my .xml files to pdf... 

Info path can do this manually by opening the .xml with Infopath, then under File-> Save&Send -> File Types -> Create PDF/XPS Document..

I have to do this on a mass scale. and would like to use powershell.. to speed it up.

In my mind I would do something like..

1. Import Infopath module

2. use convert to pdf command on the .xml file in the folder

3. save new pdf in a destination path

all within a for each loop..

Am i over simplifying this?

and can someone help me understand the syntax for this kind of thing. 

  • Changed type Bill_Stewart Friday, April 28, 2017 8:39 PM
  • Moved by Bill_Stewart Friday, April 28, 2017 8:39 PM This is not "research solution for me" forum

Reply:

Can you post your script? What is it that is not working?  What errors are you getting?


\_(ツ)_/


------------------------------------
Reply:

There is no PowerShell module for InfoPath.


\_(ツ)_/


------------------------------------
Reply:

Please don't post duplicate questions. 


\_(ツ)_/


------------------------------------
Reply:
:P accident.

------------------------------------
Reply:

"There is no PowerShell module for InfoPath."

Thank you for confirming...

If there is no Powershell Module for InfoPath, do you have any suggestions for doing it? the code is not full because there isnt a purpose to making it nice and polished if I cant get it to perform the conversion from .XML to PDF.

"


$NewPath = "C:\users\$LocalUser\Desktop\$FolderName"

#DUPLICATE TO LOCAL
New-Item -Path $NewPath -ItemType directory #Creates Folder
Copy-Item X:\* $NewPath #Copies Items from folder to local Destination

ForEach($File in (Get-Content $NewPath)){
    Try{} #Try to convert to PDF
    catch{} #If fail create Fail .txt
}

"

obviously clunky and simple, the biggest problem is finding a quick way to convert the .xml to pdf.. and since there isnt a powershell module for infopath, Im not sure how i can do that now.



  • Edited by Ggbah Wednesday, March 29, 2017 7:30 PM

------------------------------------
Reply:
the biggest problem is finding a quick way to convert the .xml to pdf

XML is a text-based format that generally uses a schema to describe its data.

There is no such thing as "convert .XML to .PDF" in a generic sense.

Unfortunately you will need to do the research for this problem on your own. We can't tell you an answer because 1) there is not enough information in your question and 2) researching solutions to specific problems is really outside the scope of a scripting forum.


-- Bill Stewart [Bill_Stewart]


------------------------------------
Reply:

just open it in Word and save as PDF.


\_(ツ)_/


------------------------------------

Microsoft.SqlServer.Management.Common.SqlConnectionInfo.set_IsActiveDirectoryUniversalAuth(Boolean)'. (ConnectionDlg)

I am not able to connect to the server using SQL server 2016 client. Below is the error information:

Cannot connect to XXXXX\XXXX

===================================

Method not found: 'Void Microsoft.SqlServer.Management.Common.SqlConnectionInfo.set_IsActiveDirectoryUniversalAuth(Boolean)'. (ConnectionDlg)

------------------------------

Program Location:

   at Microsoft.SqlServer.Management.UI.ConnectionDlg.SqlServerType.Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType.GetConnectionObject(UIConnectionInfo ci)

   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)

   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()


  • Edited by Aman_IIS Thursday, February 2, 2017 6:37 PM

Reply:

Solution was to apply a patch of SQL server 2016 version 13.0.16106.4 and this will resolve this issue. Any patch after this version would also help.



  • Edited by Aman_IIS Thursday, February 2, 2017 6:39 PM

------------------------------------
Reply:

Hi Aman,

I've only installed SSMS on a new PC and I'm getting this error.

Can you point me to where I can download the patch you are referring to?

Thanks.

Kobus


------------------------------------
Reply:
@Aman_IIS, can you help us and tell us which patch you are talking about? I just downloaded a fresh version of SSMS 2016, and I have the same error.

------------------------------------
Reply:

I have found a solution, it's not pretty but at least I can work!

http://dba.stackexchange.com/a/168566/67941


------------------------------------

printfilterpipelinesvc exe high memory Utilization

There are many Print Servers in my Production environment but some of Print Servers are getting high memory utilization from printfilterpipelinesvc exe process.All the Print Servers are configured with PCounter Server.I m curious to know about that why it's happening this. I want to resolve this issue as soon as possible because whenever printfilterpipelinesvc exe process utilize high memory of my Print Servers, its performance get very slow and once it reaches up to 100% utilization none of administrator can take remote control of that Server. I m looking out for a solution which helps me to get rid of this problem.


Pradeep Manral


Reply:

Hi Pradeep,

the windows server forum can be found here -

https://social.technet.microsoft.com/Forums/windowsserver/en-US/home

you may want to include your server's version, patch level and RAM configuration with your questions.

Regards.


Rob^_^


------------------------------------

No comments:

Post a Comment

Setup is Split Across Multiple CDs

Setup is Split Across Multiple CDs Lately I've seen a bunch of people hitting installation errors that have to do with the fact th...